Page 1 of 1

[Command] getGlobal

Posted: Mon Nov 01, 2021 9:33 pm
by Raddeck
GlobalVariable.getGlobal()


USE:
Get the float value of a global variable.
If there's no global variable under such name, returns 0.


TYPE: Command, non-Ref (ref-like syntax)
RETURNS: float
THEME: Variables
COMPARE: clearGlobal, setGlobal, getID


EXAMPLE:

Code: Select all

    SugarDaddyID = SugarDaddyGV.getGlobal()
    If SugarDaddy != 0
        SugarDaddyActor = getSpecific(SugarDaddyID)
    Endif