Squirrel/Server/Functions/Scripts/RegisterRemoteFunc
From Liberty Unleashed Wiki
(Difference between revisions)
Line 2: | Line 2: | ||
<div style="border:1px solid #a3bfb1; background:#DFFFDF; width:99%; padding:4px; margin-bottom:10px"> | <div style="border:1px solid #a3bfb1; background:#DFFFDF; width:99%; padding:4px; margin-bottom:10px"> | ||
<div style="border:1px solid #a3bfb1; background:#EFFFEF; width:99%; padding:4px"> | <div style="border:1px solid #a3bfb1; background:#EFFFEF; width:99%; padding:4px"> | ||
− | <div align="center">This function register a function to be called from client side.</div> | + | <div align="center">This function register a server function to be called from client side.</div> |
</div></div> | </div></div> | ||
Revision as of 21:40, 4 August 2014
This function register a server function to be called from client side.
Syntax
RegisterRemoteFunc ( String Function )
Arguments
- String Function: A function.
Examples
function onScriptLoad ( ) { RegisterRemoteFunc ( "Hello" ); } function Hello { // Own script }