When using "__WPL:setWaypointIndex(index)" if you add waypoints it will no longer point to the correct point. Plus it can be hard to find the right waypoint index if the commented numbers are wrong because of manual changes to the file.
You can use "__WPL:setWaypointIndex(__WPL:getNearestWaypoint(X, Z));" but it is possible to, either intentionally or unintentionally, have different waypoints with the same x, z values. So it's possible to go to the wrong waypoint.
What I envision is being able to add tags to the waypoints that get loaded when the waypoint list gets loaded. Something like this;
Code: Select all
<!-- # 27 --><waypoint x="1111" z="2222" tag="Repair"> </waypoint>
So to go to the correct waypoint without fail you would use;
Code: Select all
__WPL:setWaypointIndex(GetTagIndex("Repair"))
I don't believe it would be difficult to implement. All you would need to do is add an extra step when loading the waypoint file to read and store the tag values and create a function to get them.
What do you think.