Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Yes.is there a way how I can set the zombie respawn time?
//Zeds
if (_dis > _spawnZedRadius) then {
if ((dayz_spawnZombies < _maxControlledZombies) and (dayz_CurrentNearByZombies < dayz_maxNearByZombies) and (dayz_currentGlobalZombies < dayz_maxGlobalZeds)) then {
_zombied = (_x getVariable ["zombieSpawn",(diag_tickTime + dayz_tickTimeOffset)]);
_age = ((diag_tickTime + dayz_tickTimeOffset) - _zombied);
//diag_log format ["%4 - %5: %1, %2, %3", _zombied, diag_tickTime, _age, "spawnCheck", _x];
if ((_age < 0) or (_age == 0) or (_age > 300)) then {
_bPos = getPosATL _x;
_zombiesNum = {alive _x} count (_bPos nearEntities ["zZombie_Base",(((sizeOf _type) * 2) + 10)]);
if (_zombiesNum == 0) then {
[_x] call building_spawnZombies;
_x setVariable ["zombieSpawn",diag_tickTime + dayz_tickTimeOffset,!_islocal];
//waitUntil{scriptDone _handle};
if (!(_x in dayz_buildingBubbleMonitor)) then {
//add active zed to var
dayz_buildingBubbleMonitor set [count dayz_buildingBubbleMonitor, _x];
};
};
};
//diag_log (format["%1 building. %2", __FILE__, _x]);
};
};
// do not spawn zeds if player is moving faster then 10kmh
if (!_onTheMove) then {
//Zeds
if ((time - dayz_spawnWait) > dayz_spawnDelay) then {
if (dayz_maxCurrentZeds < dayz_maxZeds) then {
if (dayz_CurrentZombies < dayz_maxGlobalZombies) then {
if (dayz_spawnZombies < dayz_maxLocalZombies) then {
_zombied = (_x getVariable ["zombieSpawn",-0.1]);
_dateNow = (DateToNumber date);
_age = (_dateNow - _zombied) * 525948;
if (_age > 3) then {
_x setVariable ["zombieSpawn",_dateNow,true];
[_x] call building_spawnZombies;
};
} else {
dayz_spawnWait = time;
};
};
};
};