Squirrel/Server/Events/Misc/onScriptUnload
From Liberty Unleashed Wiki
(Difference between revisions)
m (→Example) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | This function is called when a squirrel script is unloaded automatically by the server on | + | This function is called when a squirrel script is unloaded automatically by the server on shutdown or via manual console input. |
== Syntax == | == Syntax == |
Revision as of 06:21, 9 January 2010
This function is called when a squirrel script is unloaded automatically by the server on shutdown or via manual console input.
Syntax
function onScriptUnload()
Parameters
- none
Example
When the script is unloaded, the name of the script is printed to the server console.
function onScriptUnload() { print( "Unloaded LU Test Script" ); }
Related Events
- onConsoleInput
- onScriptLoad
- onScriptUnload
- onServerStart