Alter DZE_SafeZonePosCheck to allow custom radii

This commit is contained in:
oiad
2017-10-04 21:30:48 +13:00
committed by GitHub
parent c1c0db9b95
commit 6f7f1c7f93

View File

@@ -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 {