In need of some help. I have a blueprint that has spawn points located in it. In the construction script, I index these spawn points into an array. I use a random int in range to get a random index from it and pass it’s location on to the spawn actor node. I have the remove index node run after the spawn actor so that it does not use that spawn points location again. I have tried the remove item as well and items are still spawning on top of each other. I have also created a copy of the for loop and added a delay in it is as well thinking that it might be moving to fast. I can see the delay in spawning objects, so I know that part is working, but still having the same issue. See screenshot attached.
EDIT: Also, if you’re using a for each loop to process the array, it won’t work. You can’t use ‘remove index’ during a loop, unless the loop goes backwards through the array
Thank you for the information. I tried it out and does stop the spawning on top of each other, so thank you. It does spawn an item at every spawn point, which is why I was using the for loop. I modified my logic to call the custom event with a for loop, and it isn’t spawning on top and is spawning the amount that I want. And when I was using the for loop, I was using it outside of spawn function to call the spawn function and the spawn function was the one going through the array index. Is that an incorrect way to use the for loop?