How to check constantly on an input action

So I have this function where you sprint and a stamina bar will appear. Because I played with smooth appearance using opacity I also used timelines. I want to make the bar disappear when you stop sprinting, but only when your stamina is full again. Right now it doesn’t work, because it only checks one time when you release the sprint key. How would I go about fixing this?

You could use the new input system:

image

This would spam B, while AC would act as regular keypresses.


But your timelines Update every frame and have Finished pins - wouldn’t that be a better place for extra conditional checks or firing script?

Thanks! I’m going to try this