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 =…') |
m |
||
Line 1: | Line 1: | ||
− | {{Squirrel/Title| | + | {{Squirrel/Title|onScriptUnload}} |
This function is called when a Squirrel script is unloaded from the client. | This function is called when a Squirrel script is unloaded from the client. | ||
Latest revision as of 20:22, 28 July 2011
This function is called when a Squirrel script is unloaded from the client.
[edit] Syntax
function onScriptUnload()
[edit] Arguments
- none
[edit] Returns
This event does not handle return values.
[edit] Example
This example will print the name of the unloading script to the client console.
function onScriptUnload() { print( "Unloading LU Test Script" ); return 1; }
[edit] Related Events
- onClientRender
- onGlassSmash
- onScriptLoad
- onScriptUnload