[Condition] livesWithPlayer

Post Reply
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post 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
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
Post Reply