Decreasing in time in the middle of program

Hello!
I’ve made a blueprint that is changing three different abilities flashlight, noctovision and normal view. But I would like to decrease value of the novtovision batery in time while its on. I know i should use event tick to decrease in time but i dont know how to implement this in the middle of the blueprint. I want it to decrease value while its on branch pointed on the picture. The noctovision batery value is set to 100 and conected to “EventBeginPlay”. Sorry if my grammar is bad :slight_smile:

Open the tick gates

What you’re looking for is a Gate, and here’s an example that should integrate into what you’ve got already:

As for the logic you can use a looping timer to decrease the value, stopping the timer when you release the mouse button.

It’s working with the gate. Thank you very much for help! :slight_smile: