[Command] getID

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 »

Actor.getID()


USE:
Get the ID number of this actor, which can then be saved as a global variable and then called on using getSpecific.


TYPE: Command, Reference
RETURNS: Float
THEME: Identity, Variables
COMPARE: setGlobal, getGlobal, getSpecific


EXAMPLE:

Code: Select all

    ID = Actor.getID()
    SugarDaddy.setGlobal(ID)
    
    // another scene
    
    ID = SugarDaddy.getGlobal()
    If ID != 0
        Actor = getSpecific(ID)
    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