Skip to content

Instantly share code, notes, and snippets.

@Aebian
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aebian/45380fa0d70d0a000e78 to your computer and use it in GitHub Desktop.
Save Aebian/45380fa0d70d0a000e78 to your computer and use it in GitHub Desktop.
ddAction
while {true} do {
sleep 1;
{
if ((typeOf _x) in ["B_Truck_01_Repair_F"]) then {
if (!(_x getVariable ["isSetup", false])) then {
_x setVariable ["isSetup", true];
//here's where you put your code:
_x addAction ["Repair Example", {(_this select 0) setDamage 0;}];
};
};
} forEach vehicles;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment