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

20 lines
No EOL
428 B
Text

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