onScriptUnload
From Liberty Unleashed Wiki
This function is called when a squirrel script is unloaded automatically by the server on shutdown, via manual console input or using the function UnloadScript. This event is only called in the script which was unloaded.
Syntax
function onScriptUnload()
Arguments
- none
Returns
This event does not handle return values.
Example
This example will print the name of the loaded script to the server console.
function onScriptUnload() { print( "Unloaded LU Test Script" ); return 1; }
Notes
The function print was used in this example. More info about this in the corresponding page.
Related Events
- onConsoleInput
- onScriptLoad
- onScriptUnload
- onServerStart