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"
|
#include "scheduler.hpp"
|
||||||
|
|
||||||
sched_spawnCheck_init = { []spawn{} };
|
|
||||||
sched_spawnCheck = {
|
sched_spawnCheck = {
|
||||||
HIDE_FSM_VARS
|
HIDE_FSM_VARS
|
||||||
if (scriptDone _this) then {
|
call player_spawnCheck;
|
||||||
_this = [] spawn player_spawnCheck; // calls buildingSpawnZombies --> zombie_generate which uses sleep, can't put in scheduler
|
objNull
|
||||||
};
|
};
|
||||||
_this;
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user