Squirrel/Client/Events/Misc/onScriptUnload
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with '{{Squirrel/Title|onScriptLoad}} This function is called when a Squirrel script is unloaded from the client. == Syntax == <code>function onScriptUnload()</code> === Arguments =…') |
Revision as of 20:21, 28 July 2011
This function is called when a Squirrel script is unloaded from the client.
Syntax
function onScriptUnload()
Arguments
- none
Returns
This event does not handle return values.
Example
This example will print the name of the unloading script to the client console.
function onScriptUnload() { print( "Unloading LU Test Script" ); return 1; }
Related Events
- onClientRender
- onGlassSmash
- onScriptLoad
- onScriptUnload