Sarge-AI/scripts/UPSMON/COMMON/unit/fnc/UPSMON_Disableunitloop.sqf
Teh Dango 3ac749d64b 2.1.0
This is the latest stable version of Sarge AI for Arma 3: Exile.
2016-02-19 21:49:51 -05:00

18 lines
544 B
Plaintext

/****************************************************************
****************************************************************/
private["_unit"];
_unit = _this select 0;
waituntil {IsNull _unit || !alive _unit || !IsNull ((group _unit) getvariable ["UPSMON_target",Objnull]) || _unit getvariable ["UPSMON_SUPSTATUS",""] != "" || _unit getvariable ["UPSMON_Wait",time] <= time};
if (!IsNull _unit) then
{
If (alive _unit) then
{
_unit switchmove "";
_unit enableAI "MOVE";
_unit setvariable ["UPSMON_Civdisable",false];
};
};