Begin the pathfinding process.
Begin the pathfinding process.
1 number startX
the starting X tile coordinate.
2 number startY
the starting Y tile coordinate.
3 number targetX
the desired endpoint X tile coordinate.
4 number targetY
the desired endpoint Y tile coordinate.
1 table
the resulting path under the following circumstances: 1. the pathfinder is not multiframe 2. the pathfinder has succeeded in finding a path. If the pathfinder is multiframe, then you will need to check for success via :hasFinished() and :hasSucceeded() whenever you need to poll the pathfinding result.