Jump to content

Hel with getDistanceBetweenPoints3D and decimals


DuFraN

Recommended Posts

Hey guys i have a problem with this function and decimals, my problem really is the decimals, how can remove decimals?.

        x1,y1,z1 = getElementPosition (Base) 
        x2,y2,z2 = getElementPosition (Marcador_Entrega) 
        distancia = getDistanceBetweenPoints3D (x1,y1,z1,x2,y2,z2) 
        outputChatBox("Distancia:"..distancia) 
  

the result is: Distancia: 4515.64548

how can remove the decimals?.

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