LifePlay-Revival/Docs/Modding/Command_Functions/setGlobal.txt
DoctaSax 7fd1ff94e5 1.7
2018-07-26 21:33:38 +02:00

17 lines
No EOL
378 B
Text

GlobalVariableName.setGlobal(float or floatvariable)
USE:
Set (add if it doesn't already exist) a global variable to a certain number.
TYPE: Command, non-Ref (ref-like syntax)
RETURNS: /
THEME: Variables
COMPARE: getGlobal, clearGlobal, getID
EXAMPLE:
NumberOfChildren.setGlobal(3)
OR
SugarDaddyID = Actor2.getID()
SugarDaddy.setGlobal(SugarDaddyID)