20 lines
428 B
Text
20 lines
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
|