I'm really confused and hope you can help!

So I’m making a FPS (I’ve been following Virtus Learning HUB on YouTube), the attached images show what I’ve got so far regarding a health and shield system. I’ve attached the TakeDamage5% to an actor so when I walk into it my shield bar goes down and then after my health goes down. If I move away from the actor my health stops going down and my shield regenerates.

My issue is while my shield or health is going down, the shield is regenerating every couple of seconds. I need to find a way to pause the shield regen while I’m taking damage and when I’ve stopped taking damage the shield regen will continue.

I’m really new to UE4 so it’s all confusing to me.

Hope someone out there can help! thank you for reading this!