mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
player_spawnCheck no longer needs to be spawned.
Since removing the unnecessary sleeps from zombie_generate, player_spawnCheck can now be called instead of spawned.
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
#include "scheduler.hpp"
|
||||
|
||||
sched_spawnCheck_init = { []spawn{} };
|
||||
sched_spawnCheck = {
|
||||
HIDE_FSM_VARS
|
||||
if (scriptDone _this) then {
|
||||
_this = [] spawn player_spawnCheck; // calls buildingSpawnZombies --> zombie_generate which uses sleep, can't put in scheduler
|
||||
};
|
||||
_this;
|
||||
};
|
||||
call player_spawnCheck;
|
||||
objNull
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user