LifePlay-Revival/Docs/Modding/Functions/Condition_Functions/isValid.txt

13 lines
367 B
Text
Raw Normal View History

2018-04-05 21:18:14 +00:00
Actor1.isValid() returns bool
Check if an actor variable is valid. Most commonly used after GetPerson(), GetCompanion() or GetSpecific()
EXAMPLE:
John = getSpecific(Colleague)
If John.isValid()
"I have at least one colleague"
Else
John = generatePerson()
John.addColleague()
"I met a new colleague, <John.name>"
Endif