Hello,
I try to spawn actors on a grid.
- Each location is specified in an array and is unique.
- In my project I don’t want all the locations to be filled so the last index will not be the length of array,
- I want unique actor by location
- I put it in player controller because I will use it in a Networked game
- Here my grid is a simple line for demo of my bug.
So in attachment you can see my blueprint and the result in game, this is not a full line, some actors are missing.
I was expected that the line be filled up because the Last Index is equal to the array length.
In the loop the item is not removed.
So 2 or more actors use the same location.
What have I done wrong? Is it a bug or an expected behavior?
Thanks for your help.
PS: In my game I use it as a function to execute it with different class of actor in order to partially fill my grid with differents actors. I don’t wand my grid to be fully filled. But only one actor by loction. So another method can help too.