USE:
Returns Actor
Used for WHO: conditions for interactions, get the current interaction target (i.e. the actor the player just clicked on)
TYPE: Command, Non-Ref
RETURNS: Actor
THEME: Actor Loading
COMPARE:
EXAMPLE:
In lpaction
Code: Select all
WHO: MotorcycleDealer = getTarget(); If ....
In lpscene
Code: Select all
If CarDealer.isValid()
CarDealerID = CarDealer.getID()
CarDealer_ID = CarDealerID + Random(1000, 3000)
CarDealer_ID = CarDealer_ID.round()
rk_VB_CarDealer_ID.setGlobal(CarDealer_ID)
Else
CarDealer = generatePerson()
CarDealer_ID = CarDealer.getID()
rk_VB_CarDealer_ID.setGlobal(CarDealer_ID)
Endif