Search...
.distance3D
Used to calculate the distance between two Vector3's
Usage
Arguments
- vector1 -> Vector3
- The first Vector3
- vector2 -> Vector3
- The second Vector3
Returns
- Returns a number that is the distance between the two points in GTA distance units.
typescript
const distance = AthenaClient.utility.distance3D(player.pos, target.pos);