Squirrel/Client/Functions/Scripts/CallServerFunc

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "This function will call a server function from a clientside script. == Syntax == <code>CallServerFunc( string Path, string Function, player Localplayer, int params )</code> ...")
 

Latest revision as of 11:51, 27 July 2012

This function will call a server function from a clientside script.

[edit] Syntax

  1. CallServerFunc( string Path, string Function, player Localplayer, int params )

[edit] Arguments

  • Path - The path to the folder including foldername and filename ( + extension )
  • Function - The name of the function you want to call.
  • localplayer - The player you want to call the function for, see FindLocalPlayer
  • params - The additional function params which can vary from vectors and floats to integers and strings.
Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox