mirror of
https://github.com/Teh-Dango/Sarge-AI.git
synced 2024-08-30 16:32:11 +00:00
65e4453908
Major Update. Now supporting DesolationRedux, Epoch and Exile.
18 lines
544 B
Plaintext
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];
|
|
};
|
|
}; |