Jump to content

Disable firing inside boundaries


Recommended Posts

I want to prevent people from shooting when the player is inside a perimeter/boundaries.
When it comes to the shooting part, it's easy to prevent with Player::disableFiring. However, I'm unsure as to how I would set boundaries and check the player's position relatively to the set boundaries. Any help would be appreciated!

Link to comment
Share on other sites

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...