| Property | Value |
|---|---|
| Native Name | GET_NTH_CLOSEST_VEHICLE_NODE_FAVOUR_DIRECTION |
| Hash | 0x45905BE8654AE067 |
| Return Type | BOOL |
| Parameters | x (float), y (float), z (float), desiredX (float), desiredY (float), desiredZ (float), nthClosest (int), outPosition (Vector3*), outHeading (float*), nodeFlags (int), zMeasureMult (float), zTolerance (float) |
Description: Like GET_CLOSEST_VEHICLE_NODE_WITH_HEADING, but returns the nth closest node instead of the first.
Parameters
x(float) — X coordinatey(float) — Y coordinatez(float) — Z coordinatedesiredX(float) — The X direction to favourdesiredY(float) — The Y direction to favourdesiredZ(float) — The Z direction to favournthClosest(int) — The index of the node to returnoutPosition(Vector3*) — Pointer to the found nodes coordsoutHeading(float*) — Pointer to the found nodes headingnodeFlags(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