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

27 lines
No EOL
830 B
Text

getSpecific(keyword)
getSpecific(float)
getSpecific(float variable)
USE:
Get a specific person in your current game.
Available keywords are: Dating, Dating_Friend, Boss, Colleague, Neighbour, PT, ExDating, Landlord, CurrentBabyDaddy, Impregnated
Alternatively, you can input an ID number or a float variable containing it to get the actor with that ID.
TYPE: Command, Non-Ref
RETURNS: Actor
THEME: Actor Loading
COMPARE: getPerson, getID, setGlobal, getGlobal, isValid
EXAMPLE:
SO = getSpecific(Dating) // get my boyfriend / girlfriend
if SO.isValid
// I actually have a bf/gf
endif
Actor5 = getSpecific(5) // get the fifth generated actor in this current game
ID = SugarDaddy.getGlobal()
If ID != 0
SugarDaddyActor = getSpecific(ID) // get the sugar daddy via the float variable
Endif