Squirrel/Server/Events/Misc/onScriptUnload
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ This function is called when a squirrel script is unloaded automatically by the server on startup or via manual console input. == Syntax == <code>function onScriptUnload()</cod...) |
(→Example) |
||
Line 15: | Line 15: | ||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | function | + | function onScriptUnLoad() |
{ | { | ||
print( "Unloaded LU Test Script" ); | print( "Unloaded LU Test Script" ); |
Revision as of 06:20, 9 January 2010
This function is called when a squirrel script is unloaded automatically by the server on startup 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