Jump to content

Limit height of ColShape.Polygon


SuperM

Recommended Posts

14 hours ago, IIYAMA said:

You can use a second colshape in combination with:

https://wiki.multitheftauto.com/wiki/IsElementWithinColShape

:-({|=

 

So group the colshapes, attach a single handler. And use the function to check if the player is in both.

 

 

But my example only has one Polygon  colshape, just need the height limited so, for example, people flying (freecam or similar) using planes, helicopters don't get detected.

Link to comment
  • Moderators
10 hours ago, SuperM said:

But my example only has one Polygon  colshape, just need the height limited so, for example, people flying (freecam or similar) using planes, helicopters don't get detected.

That's why you need two... since polygons can't be limited on the height.

Link to comment

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...