Closed szphie closed 1 year ago
Hi,
Osiris scripts can only run when the game has completely finished loading.
The SessionLoaded
event triggers when the game finished serializing savegame data, but did not load the map, did not send it over to the client, etc.
You can listen to the GameStateChanged
engine event and wait for the server state to change to "Running", or alternatively the LevelGameplayStarted
Osiris event.
i have a really simple script that won't run since patch 2 - attempting to launch a timer causes an
Attempted to access Osiris function in restricted context
error; is there a different event i can subscribe to that will allow firing a timer on game load?BootstrapServer.lua:
Server/Timer.lua:
run log: