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

18 lines
No EOL
396 B
Text

Actor.livesWithPlayer()
USE:
Returns true if the actor lives with the player, ie in the same apartment, not the same building (that'd be a neighbour).
TYPE: Condition, Reference
RETURNS: bool
THEME: Housing
COMPARE: isNeighbour
EXAMPLE:
Parent = getRelative(Parent)
if Parent.isValid()
if Parent.livesWithPlayer()
Player(Sad)::"I still live with my <Parent.dad_or_mom>."
endif
endif