exit(integer code) | immediately end the script process |
reload() | reload the entire script |
remove(Script.FunctionEvent event) | remove a previously scheduled event |
resolve(string path) | resolves the given path relative to the current script file location |
schedule(function function, any userdata, instance context, float measure, Time.Clock clock) | schedule a function to execute in a given context at the given time |
schedule(function function, any userdata, float measure, Time.Clock clock) | schedule a function to execute in a given context at the given time |
schedule(function function, float measure, Time.Clock clock) | schedule a function to execute in the script context at the given time |
stayAlive() | keep the script process alive until explicitly terminated |
Script.FunctionEvent |
An array of command line arguments for the script. The first element in the array is the main executing script file.
An array of command line arguments for the underlying script interpreter process.
Immediately end the script process.
Reload the entire script.
Remove a previously scheduled event
Resolves the given path relative to the current script file location.
Schedule a function to execute in a given context at the given time.
Schedule a function to execute in a given context at the given time.
Schedule a function to execute in the script context at the given time.
Keep the script process alive until explicitly terminated.
A script with no scheduled events will normally terminate immediately after the end of the script, use this method to keep the script process alive for method handlers.
The script process must then be terminated externally (e.g. via signal) or by calling System.exit in a method handler.