Squirrel/Server/Functions/Scripts/SetScriptData

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Arguments)
Line 1: Line 1:
This function sets a data which can be retrieved by any other script ( be it clientside or serverside ).
+
This function sets a data which can be retrieved by any other script via [[Squirrel/Server/Functions/Server/GetScriptData|GetScriptData]] serverside or [[Squirrel/Client/Functions/Scripts/GetScriptData|GetScriptData]] clientside. This function also returns a bool.
  
 
== Syntax ==
 
== Syntax ==

Revision as of 20:24, 26 October 2012

This function sets a data which can be retrieved by any other script via GetScriptData serverside or GetScriptData clientside. This function also returns a bool.

Syntax

  1. string SetScriptData( string dataName, dataValue )

Arguments

dataName - The string name of the data you want to set.

dataValue - The value of the data ( integer/float/string ).

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox