Squirrel/Server/Functions/Scripts/SetScriptData
From Liberty Unleashed Wiki
(Difference between revisions)
Line 1: | Line 1: | ||
+ | {{Squirrel/Title|SetScriptData}} | ||
+ | |||
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 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. | ||
Latest revision as of 20:30, 26 October 2012
This function sets a data which can be retrieved by any other script via GetScriptData serverside or GetScriptData clientside.
[edit] Syntax
bool SetScriptData( string dataName, dataValue )
[edit] Arguments
dataName - The string name of the data you want to set.
dataValue - The value of the data ( integer/float/string ).