Sarge-AI/scripts/UPSMON/COMMON/Params/fnc/UPSMON_BacktoNormal.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

30 lines
929 B
Plaintext

/****************************************************************
File: UPSMON_BackToNormal.sqf
Author: Azroul13
Description:
Parameter(s):
<--- group
Returns:
Nothing
****************************************************************/
private["_npc","_Ucthis","_behaviour"];
_grp = _this select 0;
_grp setvariable ["UPSMON_Grpstatus","GREEN"];
If (_grp getvariable ["UPSMON_NOWP",0] > 0) then
{
[_grp,((_grp getvariable "UPSMON_Origin") select 0),"MOVE",((_grp getvariable "UPSMON_Origin") select 1),((_grp getvariable "UPSMON_Origin") select 2),((_grp getvariable "UPSMON_Origin") select 3),"YELLOW",1] spawn UPSMON_DocreateWP;
}
else
{
_grp setbehaviour ((_grp getvariable "UPSMON_Origin") select 1);
_grp setspeedmode ((_grp getvariable "UPSMON_Origin") select 2);
_grp setformation ((_grp getvariable "UPSMON_Origin") select 3);
};
_grp setvariable ["UPSMON_Grpmission",_grp getvariable "UPSMON_OrgGrpmission"];