How to make a death system when the npc hits the character

you can implement it using HP system with maximum set to 3/3

before each HP loss event, a branch should check if it’s 0/3 already, and if yes, trigger death animation.

after each HP loss event, start (restart) a 1 minute timer that is renewing HP to 3/3 when it’s finished.