mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Prevent Zed + loot spawn in safezones
thanks BaroN for the idea
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user