A new waypoint is made after executing the following code:
wp = group player addWaypoint [position mike,1];
Where the player is named "player" and another soldier (not grouped with the player) is named "mike".
If I start the mission, I see the new waypoint being created, which probably means that the AI doesn't WALK towards their waypoint.
Note: it doesn't matter if I use 1 or 0 as the waypoint index. But the
wiki states that index 0 is always a waypoint created at the soldier's starting position.
Note1: as you have already created a waypoint, I tested if the waypoint gets created when you use 0,1,2,3 etc and in what order waypoints will be created. The weird thing is, you can use 0 or 5, the result is that the waypoint you create is the final waypoint. But, they are always there, it's just that units don't go to them.
Note2: Units
DO move to a newly created waypoint if there are editor waypoints they have to reach first, but they must not have reached them. If they stop, they stay still. Don't know how to get them to make their way towards a "hand-made" waypoint.
Note3: Still haven't found a command that let's the AI walk to their next WP.