Returns a table of waypoints that represents a route.
number start
The beginning waypoint ID.
table endpos
A table of destination waypoint IDs. It looks like the following:
{ [ID of destination #1] = true, [ID of destination #2] = true, ...}number group = 0
Optional, specify a waypoint group here.
A sequential table of waypoints. Nil if the route isn't found. It looks like the following:
{ <ID of the destination>, <ID of the second to last waypoint>, ... <ID of the second waypoint>, <ID of the beginning waypoint>}Prints a route from waypoint #1 to waypoint #10.