
How to do something while something else is true without using a while loop?
I have an enemy character that is on fire and I want the player to take periodic damage WHILE they are inside a radius (overlapping a collision sphere) and WHILE the enemy's fire effect is active (the player has the ability to put it out). But whenever I try to use a while loop it detects an infinite loop (which is the whole point!) and kicks me out. Here's how I have my blueprint currently:
How can I achieve a similar effect without using a while loop?