My for loop needs help

I have a for loop that loops the required amount of times, but the spawn node only activates once. I have 5 child components with sockets in an array to cycle through.

So far, the loop prints text for 0-4 index of my array, but the spawn node only activates once. Am i missing something?
I thought that maybe there might be a confliction with spawn collision, but i added more delay between loops and did not change the outcome.

1 Like

Delay doesn’t work in a for loop.

You should be able to get 4 projectiles if you change the collision handling to ‘always spawn’.

If you make a copy of the for loop macro, you can include a delay in it

If you want to shuffle, you’ll need to put the result of ‘get components’ into a variable.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.