Sorry for the incredibly confusing title, but Im having a hard time explaining this. Im trying to acces a series of actors (amount can change at any time), and I want my AI character to move to that series of actors one by one. A foreach loop would execute all of it at once, and thats not what I want. I want the actor with the next index to execute once the first one finished.
In the image attached you can see how Im doing it right now. It works, but only for 3 actors. If the cone would detect 2 or 4, it just wouldnt work.
Any help would be appreciated!