completedWaypoints <group>
- Would return an array of waypoints completed by given group.
- Example: completedWaypoints loongrp; // [[loongrp,0],[loongrp,1]]
currentWaypointWP <unit/group>
- same as currentWaypoint but would return the actual waypoint and not the index number (never understood why the index number route was selected in the first place)..
- Example: currentWaypointWP loongrp; // [loongrp,3]
waypointCompleted <waypoint>
- Would return boolean according to whether given waypoint is completed or not.
- Example: if (waypointCompleted (currentWaypointWP loongrp)) then {hint "loons are here"};
forceWPComplete <waypoint>
- for forcing given waypoint to complete.
- Example: if (((leader playerhuntergrp) targetKnowledge player) select 1) then {playerhuntergrp forceWPComplete (currentWaypointWP loongrp)};
waypointPlacementRadius <waypoint>
- you can basically get everything else out of waypoints already so why not this one too??
lockedWP <unit/group>
- for checking if given unit/group has it's waypoint locked with lockWP..
- Ancient 'set' without a 'get'...
- Example: if (!(lockedWP loongrp)) then {hint "loons are free!!"};
doStopped <unit>
- self-explanatory, return boolean whether unit has bee stopped by doStop (or alternatively expand the old stopped command to do this)
- 'get' for a 'set'...
- Example: if (doStopped loon1) then {hint "loon has stopped"};
forcedSpeed <unit>
- for returning speed forced with forceSpeed
- 'get' for a 'set', people...
- Example: if (forcedSpeed loon1 == -1) then {loon1 forceSpeed 5};
moveCompleted <vehicle/group> / moveCompleted <[vehicle/group,waypoint]>
- basically combined moveToCompleted/Failed for determining whether given unit has completed it's move command issued by doMove or commandMove. And maybe even a waypoint (no harm in having two types of command to detect completed waypoint :P )
- Ideally would return a string, something like: "READY" for succesful move, "FAILED" for failed move (like when AI shouts "Negative!" after realizing it can't get where it was order to go to), "MOVING" if move still in progress.