Squirrel/Server/Events/Misc/onScriptUnload

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
m (Example)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
This function is called when a squirrel script is unloaded automatically by the server on startup or via manual console input.
+
This function is called when a squirrel script is unloaded automatically by the server on shutdown or via manual console input.
  
 
== Syntax ==
 
== Syntax ==

Revision as of 06:21, 9 January 2010

This function is called when a squirrel script is unloaded automatically by the server on shutdown or via manual console input.

Syntax

  1. function onScriptUnload()

Parameters

  • none

Example

When the script is unloaded, the name of the script is printed to the server console.

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

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox