If you want to teleport to only one when a key is pressed, the Foreach Loop is not the way to go, because it teleports you three times each you press X, and you end up at the last array location and you don’t see the teleportation to the first two, because it happens instantly.
From the top of my head I can see two solutions:
Make a Multigate with three execution pins and cycle through them. But it will only work if the number of grenades is always 3 and doesn’t change, since you can’t modify the Multigate when the game is launched. So I guess that’s a bad option really.
Make it manually: create an Int variable and each you teleport, increase in by 1. When the value reaches X (which is the array length), set it back to 0. This way you can have an indefinite number of grenades, and this will work.
I fiddled around for 5 hours trying making an auto-generated array that makes a list out of the spawned actors–, without success. because I get confused as to what the list should do (and what function will actually make the 1231 order)
However, the “Shuffle” node works.
Do you mind showing me a little screenshot of what I am supposed to do? I tried to make variables out of every pin but I just don’t get it.