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

19 lines
No EOL
453 B
Text

Actor.isValid()
USE:
Check if an actor variable is valid. Most commonly used after GetPerson(), GetCompanion() or GetSpecific()
TYPE: Condition, Reference
RETURNS: bool
THEME: Actor Loading
COMPARE: getPerson, 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