GET_DISTANCE_BETWEEN_COORDS
If useZ is false, only the 2D plane (X-Y) will be considered for calculating the distance. Consider using this faster native instead: BUILTIN::VDIST - DVIST always takes in consideration the 3D coordinates.
MISCBuild 1207
Signature
lua
GetDistanceBetweenCoords(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, true)
-- returns floatParameters
| Name | Type | Description |
|---|---|---|
| float | — | |
| float | — | |
| float | — | |
| float | — | |
| float | — | |
| float | — | |
| BOOL | — |
Usage
lua
GetDistanceBetweenCoords(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Joaat hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
