mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Use nearObjects instead of nearestObjects for spawn check #1816
Lowered spawn check radius for loot and zombies to the same as 1051. (200m)
This commit is contained in:
@@ -13,7 +13,7 @@ private ["_class","_sign","_near"];
|
||||
|
||||
_class = _this select 0;
|
||||
_sign = _this select 1;
|
||||
_near = count (nearestObjects [player,[_class],50]);
|
||||
_near = count (player nearObjects [_class,50]);
|
||||
|
||||
[_class,_sign,_near] spawn {
|
||||
_class = _this select 0;
|
||||
@@ -23,12 +23,12 @@ _near = count (nearestObjects [player,[_class],50]);
|
||||
|
||||
waitUntil {
|
||||
uiSleep 1;
|
||||
(count (nearestObjects [player,[_class],50]) != _near or (diag_tickTime - _time > 15))
|
||||
(count (player nearObjects [_class,50]) != _near or (diag_tickTime - _time > 15))
|
||||
};
|
||||
|
||||
if (!isNull _sign) then {
|
||||
deleteVehicle _sign;
|
||||
};
|
||||
|
||||
{player reveal _x;} count (nearestObjects [player,[_class],50]);
|
||||
{player reveal _x;} count (player nearObjects [_class,50]);
|
||||
};
|
||||
Reference in New Issue
Block a user