Hi! I’m working on an oxygen progress bar that starts depleting at the start of the game and when it reaches 0, the character dies. The logic with the bar works perfectly, but when the character dies, and the game starts again I keep getting an error in the widget’s function, specifically with the “Get float variable” and return node.
Is there a way of restarting that logic or to stop trying to get the float variable when the character dies? I think the problem is with the Clear and Invalidate Timer by Handler node, because I was thinking of using it just before entering the death animation, but it didn’t work.
This is the Character Logic of losing oxygen:
The problem is here, because the Function is trying to obtain the Oxygen float variable, but it can’t when my character dies.


