Sarge-AI/sarge/UPSMON/COMMON/Params/fnc/UPSMON_GetGroupformation.sqf
Teh Dango c5e98f17e6 Epoch Update
Epoch Update
2017-10-25 21:36:31 -04:00

29 lines
793 B
Plaintext

/****************************************************************
File: UPSMON_GetGroupformation.sqf
Author: Azroul13
Description:
Get unit behaviour
Parameter(s):
<--- leader
<--- UPSMON parameters
Returns:
---> formation
****************************************************************/
private["_npc","_Ucthis","_formation"];
_npc = _this select 0;
_Ucthis = _this select 1;
_formation = Formation _npc;
// set formation modes (or not)
If ("COLUMN" in _UCthis) then {_formation = "COLUMN";};
If ("STAG COLUMN" in _UCthis) then {_formation = "STAG COLUMN";};
If ("WEDGE" in _UCthis) then {_formation = "WEDGE";};
If ("VEE" in _UCthis) then {_formation = "VEE";};
If ("LINE" in _UCthis) then {_formation = "LINE";};
If ("FILE" in _UCthis) then {_formation = "FILE";};
_formation