Page 1 of 1

[Condition] livesWithPlayer

Posted: Sun Oct 31, 2021 7:52 pm
by Raddeck
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:

Code: Select all

Parent = getRelative(Parent)
If Parent.isValid()
    If Parent.livesWithPlayer() 
        Player(Sad)::"I still live with my <Parent.dad_or_mom>."
    Endif
Endif