Squirrel/Server/Events/Misc/onScriptUnload

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ This function is called when a squirrel script is unloaded automatically by the server on startup or via manual console input. == Syntax == <code>function onScriptUnload()</cod...)

Revision as of 06:19, 9 January 2010

This function is called when a squirrel script is unloaded automatically by the server on startup 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 onScriptLoad()
  3. {
  4. print( "Unloaded LU Test Script" );
  5. }
  6.  

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox