Squirrel/Client/Events/Misc/onScriptUnload

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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|onScriptLoad}}
+
{{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

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function is called when a Squirrel script is unloaded from the client.

[edit] Syntax

  1. 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.

  1.  
  2. function onScriptUnload()
  3. {
  4. print( "Unloading LU Test Script" );
  5. return 1;
  6. }
  7.  

[edit] Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox