Jump to content

[Help-Me]Cylinder Bug-Position


Black2

Recommended Posts

Either use a col-sphere in the instead of a marker (using the marker just for the visual aid), or adding a simple 'if' statement:

local _, _, height = getElementPosition(hitElement)

if height-1 > marker_Z_position and height+1 < marker_Z_position then 
  --Do your stuff 
end 

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