Unknown

From DarkAI

AI MAKE PATH BETWEEN POINTS

This command will create a path between the two points specified and will take into account all obstacles in its way. This gives you direct access to the path finding system of a particular container (default is 0). If the begin and end points lie within obstacles an attempt will be made to find the closest point that is not within an obstacle. If this fails, or there is no clear path between the points then the path will be created with no points.

The Max Start Cost parameter sets the maximum distance the path can move from the start point without moving through a waypoint. Normally if the start and end points are not obstructed a path is created directly between them, if the max start cost is less than the distance between the start and end points the path must connect to a waypoint (with the max start cost range) in order to reach the destination. The end point must also be within this range of a waypoint for the path to connect to it. If either the start or end point are more than the max start cost from all waypoints then no path is created, even if the points are unobstructed. Set this to -1 to set no limit on the start and end distance (default).

If successful the begin and end points are included as part of the path.

Syntax
AI Make Path Between Points Path Number, X1#, Y1#, X2#, Y2#
AI Make Path Between Points Path Number, Container Number, X1#, Y1#, X2#, Y2#
AI Make Path Between Points Path Number, Container Number, X1#, Y1#, X2#, Y2#, Max Start Cost#

Parameters
Path Number, The id of the path you want to use to hold the returned data, should not exist.
Container Number, (optional) The id of container you want to create the path through, default is 0.
X1#, The X component of the start position.
Y1#, The Y component of the start position.
X2#, The X component of the end position.
Y2#, The Y component of the end position.
Max Start Cost#, The maximum distance between the start/end points and their connecting waypoints. (default is -1)

Return
n/a