Prevent Zed + loot spawn in safezones

thanks BaroN for the idea
This commit is contained in:
icomrade
2017-09-13 12:45:00 -04:00
parent 404210ac04
commit d750f576ed
10 changed files with 61 additions and 56 deletions

View File

@@ -845,3 +845,13 @@ dayz_engineSwitch = {
publicVariableServer "PVDZ_send";
};
};
DZE_SafeZonePosCheck = {
private ["_position","_skipPos"];
_position = _this;
_skipPos = false;
{
if ((_position distance (_x select 0)) < (_x select 1)) exitWith {_skipPos = true;};
} forEach DZE_SafeZonePosArray;
_skipPos;
};