Squirrel/Server/Functions/Scripts/RegisterRemoteFunc
From Liberty Unleashed Wiki
(Difference between revisions)
(→Examples) |
|||
Line 16: | Line 16: | ||
== Examples == | == Examples == | ||
− | <code> | + | <code lang="squirrel"> |
function onScriptLoad ( ) { | function onScriptLoad ( ) { | ||
Latest revision as of 21:59, 4 August 2014
This function register a server function to be called from client side.
[edit] Syntax
RegisterRemoteFunc ( String Function )
[edit] Arguments
- String Function: A function.
[edit] Examples
function onScriptLoad ( ) { RegisterRemoteFunc ( "Hello" ); } function Hello { // Own script }