diff --git a/Sources/epoch_server/system/server_monitor.fsm b/Sources/epoch_server/system/server_monitor.fsm index 14ca68f2..e92c63bc 100644 --- a/Sources/epoch_server/system/server_monitor.fsm +++ b/Sources/epoch_server/system/server_monitor.fsm @@ -71,7 +71,6 @@ class FSM "_prevRestartIn = 0;" \n "_serverLocked = false;" \n "_serverRestarting = false;" \n - "" \n "_players = [];" \n "_prevPlayers = [];" \n "_cleanupItems = [];" \n @@ -353,8 +352,8 @@ class FSM condition=/*%FSM*/"((diag_tickTime - _pvehTime) > 20)"/*%FSM*/; action=/*%FSM*/"// Epoch Events" \n "_pvehTime = diag_tickTime;" \n - "_events append _injectedEvents;" \n - "_injectedEvents = [];" \n + "_events append (missionNamespace getVariable [""EPOCH_dynamicEvents"", []]);" \n + "missionNamespace setVariable [""EPOCH_dynamicEvents"", nil];" \n "_newEvents = [];" \n "{" \n " _x params [""_time"", ""_scriptName"", [""_runAtStart"",0], [""_usePrePostfix"",1], [""_runNumTimes"",-1], [""_input"",[]], [""_disallowedWorlds"",[]] ];" \n