[Command] getGlobal

Post Reply
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post 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
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
Post Reply