Squirrel/Client/Functions/Scripts/CallServerFunc

From Liberty Unleashed Wiki
Revision as of 11:51, 27 July 2012 by Shadow (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Syntax

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

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