Hi wamingo. I can think of a few ways to do that, depending on the level of "dynamism" you're aiming at.
Will you like any of them? For what you're saying, no.
The simplest one:
- In the editor, in player's "Initialization" enter "Group1NextWpt = 1;"
- Now go to each of your waypoints for Group1 in the editor, and in the "On Activation" field enter "Group1NextWpt = Group1NextWpt + 1;"
That's it; now the variable Group1NextWpt will hold the number for the next waypoint for Group1. Of course, this has the limitation of being able to keep track of only a single group's next waypoint.
In order to keep track of several groups, you should use an array, applying the basic principle I just described. I'll leave it at that for the time being; just holler if you really want to go there.