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...)
 
(Example)
Line 15: Line 15:
  
 
<code lang="squirrel">
 
<code lang="squirrel">
function onScriptLoad()
+
function onScriptUnLoad()
 
{
 
{
 
     print( "Unloaded LU Test Script" );
 
     print( "Unloaded LU Test Script" );

Revision as of 06:20, 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 onScriptUnLoad()
  3. {
  4. print( "Unloaded LU Test Script" );
  5. }
  6.  

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox