Global or on startup, what comes first?
Global or on startup
Collapse
X
-
The code placed in "Global Functions" is parsed first. It is a place to define functions that are called from other events/scripts and must be globally available, and should not be used to run any code at startup. This is what "On Startup" is for, where you can call the functions that were already defined.
Ulrich
Comment
-
-
Originally posted by Ulrich View PostThe code placed in "Global Functions" is parsed first. It is a place to define functions that are called from other events/scripts and must be globally available, and should not be used to run any code at startup.
Ulrich
I think I posted the question before, but where do plugins fall into the scope of things? I'm guessing they load between Globals and On Startup?
Cheers,
MadDogDean
Comment
-
-
Plugins should load before On Startup and Global, because if your script make a call to a plugin before it has loaded an error will be returned. Script Interpreting Engine loads first, Plug-ins load next, Then Globals, Then On Startup, and so on, and so on.
Comment
-
Comment