script.on_load_finished
Posted: Thu Sep 22, 2016 5:34 pm
I tried for a long time to run code on the first tick after a game is finisched loading, but there seems to be no clean workaround, without the game desyncing in MP.
Requested features:
-Should fire on the first tick after a game was loaded, so you can edit global.variables
-Should NOT fire when another player joins the game (and load it just for him) to prevent desyncs
Why do I need this?:
-I want to check my config file for changes
-I want to set a global timer that hides the gui after 10 seconds
-I want to react to changes of the config and set active=true for some entities
Requested features:
-Should fire on the first tick after a game was loaded, so you can edit global.variables
-Should NOT fire when another player joins the game (and load it just for him) to prevent desyncs
Why do I need this?:
-I want to check my config file for changes
-I want to set a global timer that hides the gui after 10 seconds
-I want to react to changes of the config and set active=true for some entities