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

14 lines
No EOL
563 B
Text

getPerson(optional bool)
USE:
Get a random person in your current game (i.e. could be anyone that has been created with GeneratePerson() or GeneratePersonTemporary() then MakePermanent() ). Optional bool parameters to filter for whether their contact has been exchanged to you or not.
TYPE: Command, Non-Ref
RETURNS: Actor
THEME: Actor Loading
COMPARE: getSpecific
EXAMPLE:
Actor = getPerson() // get anyone
Actor = getPerson(true) // get someone who has exchanged numbers with me
Actor = getPerson(false) // get someone whose number I don't have