Enemies are still hitting me when playing death animation

How do i create that variable? Cus i am using a EnemyCharacter BP for his dying or di have to make a new BP?