Problem with first person melee attacks

Hi,

I got a problem with setting up melee attacks in a first person game. The problem is that when I hit enemies, they get hit multiple times at once, like every tick. I want to only attack when the IsAttacking Boolean is false.

I’ve set up a delay node with a TimeBetweenMeleeAttacks variable that is set to 1.0 after which my IsAttacking boolean get set back to false. But the delay node doesn’t seem to work, because I get an attack every tick. And because in front of it I set a branch 'if isAttacking = false" it should not tick again until the delay is over and isAttacking get set back to false. But something is not working here :confused:

Any ideas what might be wrong?

Thanks in advance!

attached is a screenshot of my code