mirror of
https://github.com/Teh-Dango/Sarge-AI.git
synced 2024-08-30 16:32:11 +00:00
c5e98f17e6
Epoch Update
30 lines
753 B
Plaintext
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
|
|
|
|
|