From 6f7f1c7f932e7c4a17db883d778b006cc4f9ae1b Mon Sep 17 00:00:00 2001 From: oiad Date: Wed, 4 Oct 2017 21:30:48 +1300 Subject: [PATCH] Alter DZE_SafeZonePosCheck to allow custom radii --- SQF/dayz_code/compile/zombie_generate.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/zombie_generate.sqf b/SQF/dayz_code/compile/zombie_generate.sqf index fcb739755..f3a0d3a1c 100644 --- a/SQF/dayz_code/compile/zombie_generate.sqf +++ b/SQF/dayz_code/compile/zombie_generate.sqf @@ -66,7 +66,7 @@ if ((_maxlocalspawned < _maxControlledZombies) && (dayz_CurrentNearByZombies < d _skipFOV = true; _position = [_position,3,20,1] call fn_selectRandomLocation; }; - if(_position call DZE_SafeZonePosCheck) exitWith {}; + if ([_position] call DZE_SafeZonePosCheck) exitWith {}; if (surfaceIsWater _position) exitWith { diag_log "Location is in Water Abort"; }; if ((_skipFOV) or {([_position, 15, 10, 70] call _cantSee)}) then {