Ok, here is my problem: I have a mission where Group A enters a town to clear out the enemy, and Group C is held in reserve until Group A takes losses. This is accomplished quite easily by the following code:
WEST CountSide Units WSQDA <5 or obj1
The problem comes in when the objective is cleared. Group A, which had been in the town on search & destroy waypoint moves on out to the rallying point. I want Group C to move to the rallying point as well, but they proceed to complete their search & destroy waypoint that was assigned as part of their reinforcement role.
I then tried to place the following in the objective completed trigger:
deleteWaypoint [WSQDC, 2]; deleteWaypoint [WSQDC, 3]
Understanding the 0 is the spawn point of the group and 1 is there hold waypoint synchronized to their reinforcement trigger, 2 is the S&D and 3 is the cycle waypoints.
The problem is the waypoints are deleted and the group returns to their spawn point; It is as if deletewaypoint is used that it not only deletes the waypoints identified for the assigned group but also all other waypoints placed in the mission editor thereafter.
What I want is Group C only to move into the town on S&D if Group A takes the specified losses, and then move to the rallying point once the objective is completed, otherwise move to the rallying point once the objective is completed and not go into the town because the reinforcement trigger was not fired.
Is there a simpler and cleaner way to do this?