Squirrel/Client/Events/Misc/onScriptLoad

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 loaded in the client. == Syntax == <code>function onScriptLoad()</code> === Arguments === * …')

Revision as of 20:20, 28 July 2011

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

This function is called when a Squirrel script is loaded in the client.

Syntax

  1. function onScriptLoad()

Arguments

  • none

Returns

This event does not handle return values.

Example

This example will print the name of the loaded script to the client console.

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

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox