LifePlay-Revival/Docs/Modding/Functions/getPerson.txt
2018-04-06 04:18:14 +07:00

8 lines
No EOL
491 B
Text

getPerson(optional bool) returns Actor
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.
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