FindNavPath
Finds a path; returns its number of points (-1 if none).
FindNavPath ( navmesh,from_x#,from_y#,from_z#,to_x#,to_y#,to_z# )
Parameters
- navmesh
- the navmesh's handle.
- from_x#
- where the path starts, across.
- from_y#
- its height.
- from_z#
- its depth.
- to_x#
- where the path should end, across.
- to_y#
- its height.
- to_z#
- its depth.
Description
Finds a path across a navmesh from one point to another, round walls and obstacles, and gives back its number of points, not counting the start. Read each point with NavPathX, NavPathY and NavPathZ: the corners where the path turns, then the end. When the target can't be reached, the path goes as close to it as it can. It gives back -1 when there is no path at all. NavigateTo does all this for you and walks the path; use FindNavPath to plan, or to draw a route.
