Enemy Destroy on Hit

Hi! I wanted to make it so in my 3d side scroller shooter game once my projectile (used from the fps template) destroys my enemy ai after 3 collision hits. How would I be able to do this blueprint? Thanks

create a float with default value of 3, everytiime it hits the ai, the flot decreases, 1, when it becomes 0 the ai dies

I would also put in a check to make sure the collision was caused by the projectile and not anything else in the world.