Removing Location from array after spawning?

I’m trying to setup a random spawner to spawn random amount of objects at locations stored in an array. But once spawned in a location I need to remove that location, so no other objects spawn on top of each other.

Setup is like this…

Problem is, it will still spawn on top of a location that should no longer be present causing two objects to be at same spot. I’ve played around with switching last index with length, and length with last index, and all other combinations of that without any luck. Anyone know why I’m unable to keep it from double spawning?

Thanks!

Anyone know how to do this correctly?

Think I found the problem. I wasn’t setting the array after removing items. So the array never knew it had it’s items removed on the next iteration of the loop.

Hi,

Obviously this was a while ago… but is there any chance you could post a picture of you’re updated logic? Or explain a little more in depth please? I’m having the exact same issue and my logic is very similar to what you’ve posted above. How did you reset the array after removing the items? I would have assumed that by removing an item from the array it should update itself automatically?

Cheers