mirror of
https://github.com/Teh-Dango/Sarge-AI.git
synced 2024-08-30 16:32:11 +00:00
3ac749d64b
This is the latest stable version of Sarge AI for Arma 3: Exile.
30 lines
929 B
Plaintext
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"];
|