Hi, what I’m currently trying to do, to no avail, is to have a selected pawn move to each position listed in an array and then loop back to the first position until told to stop. I have tried just about everything I can think of but they all end in infinite loops.
The way I am adding positions to the array is this:
For every pawn I have currently selected, if I have a button pressed down, it will add the next location I rightclick on to that pawns array of locations, it then tells that pawn to “patrol” and that it needs to be patrolling. Although I have not the slightest idea of how to take those locations and then move the pawn to them repeatedly until told not to. This is what I am asking for help on.
Here’s the pawn class taking in the locations and that it needs to be patrolling as a starting point for you guys.
All help is appreciated, please and thank you.