| Property | Value |
|---|---|
| Native Name | GET_NTH_CLOSEST_VEHICLE_NODE_WITH_HEADING |
| Hash | 0x80CA6A8B6C094CC4 |
| Return Type | BOOL |
| Parameters | x (float), y (float), z (float), nthClosest (int), outPosition (Vector3*), outHeading (float*), totalLanes (int*), nodeFlags (int), zMeasureMult (float), zTolerance (float) |
Description: Get the nth closest vehicle node with its heading and total lane count. If you need specific forward and backward lane counts use GET_CLOSEST_ROAD.
Parameters
x(float) — X coordinatey(float) — Y coordinatez(float) — Z coordinatenthClosest(int) — The index of the node to returnoutPosition(Vector3*) — Pointer to the found nodes coordsoutHeading(float*) — Pointer to the found nodes headingtotalLanes(int*) — Pointer to the total lanes (forward + backward) of the found nodenodeFlags(int) — Node flags, seeGET_CLOSEST_VEHICLE_NODEzMeasureMult(float) — How strongly the difference in the Z direction should be weightedzTolerance(float) — How far apart the Z coords have to be beforezMeasureMultkicks in