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

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