Delay in the MIDDLE of a for loop

Dinnea
Tue, 04 Jun 2024 14:08:59 +0000
Blueprint

SO I HAVE BUMPED INTO A HURDLE

I want to execute a for loop with a delay, which isnt apparently possible by default. I know I could make a new macro, but here is a problem: I dont want the delay be at the beginning or ending of the loop body - but in the middle of it.

AS in

For each item in array
{
//execute some code
Delay 5 seconds
//execute some code
}

How can I do this?

Blueprints preferred, but if C++ is needed to solve this, I will welcome a C++ solution

4 posts - 3 participants