getParkingNodeInArea
Client
Finds a parking node inside a box. Each call returns the next one in the box, going back to the first at the end.
vec3|false getParkingNodeInArea(float minX, minY, minZ, float maxX, maxY, maxZ)
Parameters
| Name | Type | Description |
|---|---|---|
| minX, minY, minZ | float | The box's lowest corner. |
| maxX, maxY, maxZ | float | The box's highest corner. |
Returns
The node's position, or false if there is none in the box.
Example
local spot = getParkingNodeInArea(1700, -1900, 0, 1900, -1700, 50)
if spot then
outputDebugString(("parking at %.1f, %.1f"):format(spot.x, spot.y))
endNoteOnly nodes in loaded path areas count: those near the player, or requested with
requestPathNodesInArea.