Download

Implement WHILE(condition){} in Blueprint

For anything at all, how do I do this?

**For example:

While a light is ON, I want x to become x+1 every second(a delay would have to be added, I know).**

As far as i know to get a loop with a wait you’ll have to modify the macro that contain such a loop.

You should take a look at this video: https://www.youtube.com/watch?v=Mxw391exhVg it should help you achieve what you’re looking for ^^
If after that you’re still struggling with it let me know as i think i did something similar time ago.

Blueprint WhileLoop. UE4 Documentation is your friend.

I always just add a custom event that calls itself after a delay.
Optionally, if you need the execution to continue, you can add another custom event for when the loop exits.

e.g.
WhileEvent.jpg

Thank you!