This commit is contained in:
second_coming 2016-03-30 15:20:44 +01:00
parent e607cdeeff
commit 51e6d47e43

View File

@ -51,7 +51,7 @@ for [{_i = 0},{_i < (count _statics)},{_i =_i + 1}] do
if(_aiNear > 0) exitwith { _okToSpawn = false; if(_debug) then { diag_log format ["[OCCUPATION Static]:: %1 already has %2 active AI patrolling",_spawnPosition,_aiNear];}; }; if(_aiNear > 0) exitwith { _okToSpawn = false; if(_debug) then { diag_log format ["[OCCUPATION Static]:: %1 already has %2 active AI patrolling",_spawnPosition,_aiNear];}; };
// Don't spawn additional AI if there are players in range // Don't spawn additional AI if there are players in range
if([_spawnPosition, 1] call ExileClient_util_world_isAlivePlayerInRange) exitwith { _okToSpawn = false; if(_debug) then { diag_log format ["[OCCUPATION Static]:: %1 has players too close",_spawnPosition];}; }; if([_spawnPosition, 200] call ExileClient_util_world_isAlivePlayerInRange) exitwith { _okToSpawn = false; if(_debug) then { diag_log format ["[OCCUPATION Static]:: %1 has players too close",_spawnPosition];}; };
if(_okToSpawn) then if(_okToSpawn) then
{ {