[Command] setGlobal

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 »

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:

Code: Select all

    NumberOfChildren.setGlobal(3)
    
    OR
    
    SugarDaddyID = Actor2.getID()
    SugarDaddy.setGlobal(SugarDaddyID)
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