Jump to content

Help - getDistanceBetweenPoints2D


manve1

Recommended Posts

how can i get rid of y axis on:
local x, y, z = getElementPosition( pMarker ) 
local x2, y2, z2 = getElementPosition( localPlayer ) 
getDistanceBetweenPoints2D( math.ceil(x), y, math.ceil(x2), y2 ) 

?

I believe the function requires all three, if you want to find the difference between the other two, why not do it mathematically? Just make a function yourself that does that :D BTW hello manve1!

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