Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Just copy paste this script into your initialization, in your unit, or any units

you want inf ammo or health. You do this in the mission editor.
for inf ammo:
this addEventHandler ["fired",{(_this select 0) setvehicleammo 1}]
for unlminted health:
this addeventhandler ["hit", {_this select 0 setdamage 0}]; this addeventhandler
["dammaged", {_this select 0 setdamage 0}]
for both:
this addEventHandler ["fired",{(_this select 0) setvehicleammo 1}];this addevent
handler ["hit", {_this select 0 setdamage 0}]; this addeventhandler ["dammaged",
{_this select 0 setdamage 0}]
Example 1:
{_x groupChat "I'm a playable unit.";} forEach playableUnits;
Example 2:
All playable units in a group:
_playableInGroup = units group player arrayIntersect playableUnits;
Example 3:
All non-playable units in a group:
_playableInGroup = units group player - playableUnits;
this addEventHandler ["handleDamage", { false } ];
player allowdamage false
this allowdamage false
this animateDoor ['door_L', 1];this animateDoor ['door_R', 1];
dxdiag

You might also like