From b318ee5c8bb263cf8cc8791fdda0431430dec85c Mon Sep 17 00:00:00 2001 From: oiad Date: Wed, 4 Oct 2017 21:27:58 +1300 Subject: [PATCH] Alter DZE_SafeZonePosCheck to allow custom radii --- SQF/dayz_code/compile/swarm_generate.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/compile/swarm_generate.sqf b/SQF/dayz_code/compile/swarm_generate.sqf index 13534f2c2..af6eabb2c 100644 --- a/SQF/dayz_code/compile/swarm_generate.sqf +++ b/SQF/dayz_code/compile/swarm_generate.sqf @@ -12,7 +12,7 @@ while {_counter < _amount} do { _type = "swarm_newBase"; //"_unitTypes call BIS_fnc_selectRandom; //_type = "Pastor"; _position = [position _player,50,100,0] call fn_selectRandomLocation; - if(_position call DZE_SafeZonePosCheck) exitWith {}; + if ([_position] call DZE_SafeZonePosCheck) exitWith {}; _agent = createAgent [_type, _position, [], 0, "NONE"]; _agent setVariable["agentObjectSwarm",_agent,true]; @@ -39,4 +39,4 @@ while {_counter < _amount} do { //Start behavior _id = [_position,_agent,player] execFSM "\z\AddOns\dayz_code\system\fn_swarmagent.fsm"; -}; \ No newline at end of file +};