Class: Entity
Lua
C++
Edit

Entity:GetDistance

This method is used to calculate the distance in meters to another entity or to a point in global space.

Syntax

Parameter Description
entity entity to return the distance to.
point, (x, y, z) position in global space to return the distance to

Returns

Returns the distance to the specified entity or point, in meters.

Copyright © 2024 Ultra Software.
All rights reserved.