Character Blink Like in Sonic When Hurt Not Working

The goal is when I get hit by the bullet, the material switches between what he is currently wearing and invisible. The current material is assigned when the material is applied to the character and is stored in the character blueprint.

The issues are I am stuck being invisible and after getting shot with 1 bullet, as long as I am still in the enemy view, I can not get hurt by another bullet. But if I leave the trigger box that is the enemy’s view then go back in, I can get hurt again.

I have the same code applied to another enemy and a spike pit. The only difference is you get hurt once and knocked away. So I think the issue is from having multiple bullets hit you in quick secession. But I like the 3 shot attack and don’t want to space out the bullets more. So how do I fix this? Here is my code.