Sarge-AI/sarge/UPSMON/COMMON/Params/fnc/UPSMON_GetRespawnpos.sqf
Teh Dango 7067ad9b0a 2.2.3
Check the change log for details
2016-08-18 22:58:49 -04: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