Help with Arrays

Hi

What I would do, is make 2 arrays.

One with what is left and one with what has been done.

As you pull one from an array, remove it from 1st array and ad it to the 2nd array.

When the 1st array is empty, refill it with the 2nd array and go again.

Hey guys, hope I can get some help with this.

I made this blueprint essentially to spawn enemies (actor blueprints) at certain locations. These locations are set using actors on the main level, then added to an Array. The Array is called to randomly get an actor from the Array’s range, and spawn an enemy at that actor’s location. This all works fine.

What I need help with is this:
I want to call an actor from the Array at random, but then make it so that particular actor won’t be called again until all of the other actors have been called randomly. Once all actors have been called, I’d like to “rinse and repeat”, once again randomly calling actors from the Array and excluding them from further calls until the rest have all been called.

I hope what I’m asking makes sense. Cheers.

Hey! I was thinking of something very similar to that, but wasn’t 100% sure.

It seems to work properly so far, thanks a lot for the help! :slight_smile:

Also, if it is of any interest to you or perhaps anyone who comes across this post, here is a link to the game I am making, and that your help was put towards

It’s called Starfire for the being:

It’s unfortunate but UE4 currently doesn’t support some other basic structures that would make this easier. 's method is the best unless you are comfortable with C++.