Squirrel/Server/Events/Misc/onScriptUnload

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
m
 
Line 29: Line 29:
 
=== Notes ===
 
=== Notes ===
  
The function [[Squirrel/Server/Functions/Misc/print|print]] was used in in this example. More info about this in the corresponding page.
+
The function [[Squirrel/Server/Functions/Misc/print|print]] was used in this example. More info about this in the corresponding page.
  
 
== Related Events ==
 
== Related Events ==
  
 
{{Squirrel/Server/Events/Misc}}
 
{{Squirrel/Server/Events/Misc}}

Latest revision as of 12:44, 11 November 2010

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

This function is called when a squirrel script is unloaded automatically by the server on shutdown, via manual console input or using the function UnloadScript. This event is only called in the script which was unloaded.

[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 loaded script to the server console.

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

[edit] Notes

The function print was used in this example. More info about this in the corresponding page.

[edit] Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox