Sarge-AI/ModName.MapName/scripts/bonus/UPSMON_Anim.sqf
Teh Dango 65e4453908 2.4.0
Major Update. Now supporting DesolationRedux, Epoch and Exile.
2017-12-31 03:16:37 -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;
};