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

30 lines
753 B
Plaintext

/****************************************************************
File: UPSMON_GetGroupbehaviour.sqf
Author: Azroul13
Description:
Get unit behaviour
Parameter(s):
<--- leader
<--- UPSMON parameters
Returns:
---> behaviour of the group
****************************************************************/
private["_npc","_Ucthis","_behaviour"];
_npc = _this select 0;
_Ucthis = _this select 1;
_behaviour = Behaviour _npc;
// set behaviour modes (or not)
if ("CARELESS" in _UCthis) then {_behaviour = "CARELESS"};
if ("SAFE" in _UCthis) then {_behaviour = "SAFE"};
if ("AWARE" in _UCthis) then {_behaviour = "AWARE"};
if ("COMBAT" in _UCthis) then {_behaviour = "COMBAT"};
if ("STEALTH" in _UCthis) then {_behaviour = "STEALTH"};
_behaviour