Scripting
Script Structure
onStartup()Parameters:
None
Return Value:
true: Works as normal, no errors or prints to the console.
false: Prints "Failed to execute event".
Example:
onShutdown()Parameters:
None
Return Value:
None
Example:
onTime()Parameters:
time: Time defined in XML.
Return Value:
Follows same behavior as onStartup()
Example:
onThink(interval)Parameters:
interval: Millisecond "think" interval defined in XML.
Return Value:
Follows same behavior as onStartup()
Example:
onRecord(current, old)Parameters:
current: New player count record.
old: Previous player count record.
Return Value:
Follows same behavior as onStartup()
Example:
Last updated