Squirrel/Client/Events/Misc/onScriptLoad
From Liberty Unleashed Wiki
(Difference between revisions)
(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 === * …') |
m |
||
Line 29: | Line 29: | ||
== Related Events == | == Related Events == | ||
− | {{Squirrel/ | + | {{Squirrel/Client/Events/Misc}} |
Latest revision as of 20:20, 28 July 2011
This function is called when a Squirrel script is loaded in the client.
[edit] Syntax
function onScriptLoad()
[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 client console.
function onScriptLoad() { print( "Loaded LU Test Script" ); return 1; }
[edit] Related Events
- onClientRender
- onGlassSmash
- onScriptLoad
- onScriptUnload