Make a loop

Hi world !!

I would like to repeat the following blueprints with a delay between each rehearsal.
I’d like to put the repetition between the first group and the second.

Thank’s for the help !!!

Try the “Set Timer by Function Name” node.

Right click, add a custom event. Then name it so that the name matches the FunctionName parameter on Set Timer.
The “Time” parameter will control the delay. And then set it Looping too.

Here is a tutorial I made on how to make this kind of functionality. There are 2 videos, the first is probably the better one since it will create a universal macro for you (can be used with any blueprint), the other one is only for actor BPs I think.

So you could “get all actors of class” and use that array to input into the “for each loop with delay” and it will spawn a new actor every “X” seconds.

Another method is to use a “timer by event” function hooked up to a custom event that will fire every “X” seconds. But then you will need to do some re-working of that code because you don’t want to “get all actors of class” every time you run through the loop. You would need to save the array as a variable and use a random integer like you have for the “get” out of the array and have it spawn a new actor every “x” seconds.

Thank you for your answers that works now !!