Jump to content

How to know if player is in his safe house?


SrJaimito

Recommended Posts

I want to know if the player is located inside his safe house, but I'm not sure how to get that information. My first try was using functions like

local player = getPlayer()
SafeHouse.isSafeHouse(player:getCurrentSquare(), player:getUsername(), true)

but checking the Javadoc it seems that the function SafeHouse.isSafeHouse() will return a SafeHouse object only if the player is in a safe house but he does not belong to it, returning nil otherwise.

 

How can I get this info?

Link to comment
Share on other sites

  • 9 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...