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

23 lines
632 B
Plaintext

/****************************************************************
File: UPSMON_GetRespawnpos.sqf
Author: Azroul13
Description:
Parameter(s):
<--- UPSMON parameters
Returns:
Array of position
****************************************************************/
private["_Ucthis","_respawnpos","_npc"];
_Ucthis = _this select 0;
_npc = _this select 1;
_respawnpos = getposATL _npc;
If ("RESPAWNPOS:" in _Ucthis) then {_respawnpos = ["RESPAWNPOS:",_respawnpos,_UCthis] call UPSMON_getArg};
If (typename (_respawnpos select 0) == "ARRAY") then {_respawnpos = _respawnpos select (floor (random (count _respawnpos)))};
_respawnpos