Randomly Spawning

I’m working having objects randomly spawn in an area and I’m doing it by having an array of target points and a random number generator. What I don’t understand is how can I make multiple objects spawn at the same time and make sure none of them are at the same target point?

Add the target points to an array, shuffle the array, iterate.

1 Like

Try this macro:

My Products

It is more straightforward than I’ve suggested above.

1 Like

Good suggestions,

I also wanted to point out the ‘Random Point in Bounding Box’ node and the Collision Handling Override enum (Adjust position; or do not spawn if colliding) on the ‘Spawn Actor’ node. (Unless having a very specific number of spawned actors spawned at specific locations is critical.)

3 Likes