Sarge-AI/scripts/bonus/UPSMON_Anim.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

40 lines
607 B
Plaintext

/*
Stances
[
"STAND",
"STAND_IA",
"GUARD",
"SIT_LOW",
"KNEEL",
"LEAN",
"WATCH",
"WATCH1",
"WATCH2"
];
gear
[
"NONE",
"LIGHT",
"MEDIUM",
"FULL",
"ASIS",
"RANDOM"
];
*/
_unit = _this select 0;
_anim = _this select 1;
_clothes = _this select 2;
if (isNil("UPSMON_INIT")) then {
UPSMON_INIT=0;
};
waitUntil {UPSMON_INIT==1};
If (Alive _unit && canmove _unit) then
{
[_unit,_anim,_clothes,{lifestate _unit == "INJURED" || !alive _unit ||_unit getvariable ["UPSMON_SUPSTATUS",""] != "" || !IsNull ((group _unit) getvariable ["UPSMON_GrpTarget",ObjNull])}] call BIS_fnc_ambientAnimCombat;
};