mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
Update server_functions
The protective box is not needed on Chernarus. If other maps need it we are better off spawning a permanent box around the debug area once, instead of constantly creating new boxes every time a player logs in.
This commit is contained in:
@@ -120,7 +120,7 @@ if(isServer)then{
|
||||
_delQtyLights = 0;
|
||||
{
|
||||
if (local _x) then {
|
||||
_x call dayz_perform_purge;
|
||||
deleteVehicle _x; //should use sched_co_deleteVehicle instead
|
||||
uiSleep 0.025;
|
||||
_delQtyLights = _delQtyLights + 1;
|
||||
} else {
|
||||
@@ -129,7 +129,7 @@ if(isServer)then{
|
||||
if (count _pos > 0) then {
|
||||
_nearby = {(isPlayer _x) && (alive _x)} count (_pos nearEntities [["CAManBase","AllVehicles"], 420]);//Use calculated range here.
|
||||
if (_nearby==0) then {
|
||||
_x call dayz_perform_purge;
|
||||
deleteVehicle _x; //should use sched_co_deleteVehicle instead
|
||||
uiSleep 0.025;
|
||||
_delQtyLights = _delQtyLights + 1;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user