Squirrel/Server/Functions/Scripts/RegisterRemoteFunc

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Arguments)
Line 13: Line 13:
  
 
* '''String Function''': A function.
 
* '''String Function''': A function.
 +
  
 
== Examples ==
 
== Examples ==

Revision as of 21:39, 4 August 2014

This function register a function to be called from client side.


Syntax

  1. RegisterRemoteFunc ( String Function )


Arguments

  • String Function: A function.


Examples

  1.  
  2. function onScriptLoad ( ) {
  3.  
  4. RegisterRemoteFunc ( "Hello" );
  5. }
  6.  
  7. function Hello {
  8.  
  9. // Own script
  10. }
  11.  
Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox