stopping health regen by hitting the enemy

Hey everyone!
Could you help me out?
I just want to stop the health regen only for that enemy who got hit.
In this setup the regen stops even If I hit another enemy.
How can I seperate who got the hits?

Thanks really!

It looks a bit confusing. Anyway, I’d suggest something else. Make a function for the regen inside the hittable actor which I suppose you call on tick. The nin the same actor have a boolean “isBeingHit”. Set this var on hit, (delay and unset if u need to restart regen after a while) and in the RegenFunction check for the variable branching the regen.

ive tried to do what you said almost fine,1 problem is :
If I hit an enemy then I hit another one within that 5 sec delay then the first hit enemy health regen stops and not starting the regen again (until I hit him again)

Shouldn’t that be False in the regen function? Condition isLosingHealth ->False-> add health.

plus in the linetrace at the last node you call Regen, shouldn’t be needed you already do that on tick

isLosingHealth would be the “is being hit” boolean I just didnt rename it.
So thats what you meant?

If more Than 1 player is being hit Than "comes that issue " what I said in my previous comment