Lose the gamelogic and replace it with an appropriate waypoint, lets say its seek and destroy. Now create a trigger,
type: switch
condition: variable
and synchro it with the cycle waypoint
MOVE
MOVE
CYCLE <----------- synchro the trigger with this WP
SEEK & DESTROY