# Melee animation loops indefinitely despite boolean that triggers it at tick being turned off

**URL:** <https://forums.unrealengine.com/t/melee-animation-loops-indefinitely-despite-boolean-that-triggers-it-at-tick-being-turned-off/478467>\
**Category:** Character & Animation\
**Tags:** boolean, event-tick, infinite-loop, unreal-engine, question\
**Created:** [February 8, 2021, 7:03pm UTC](https://forums.unrealengine.com/t/melee-animation-loops-indefinitely-despite-boolean-that-triggers-it-at-tick-being-turned-off/478467 "2021-02-08T19:03:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_40cf7dcb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_40cf7dcb](https://forums.unrealengine.com/u/anonymous_user_40cf7dcb)\
**Post date:** [February 8, 2021, 7:03pm UTC](https://forums.unrealengine.com/t/melee-animation-loops-indefinitely-despite-boolean-that-triggers-it-at-tick-being-turned-off/478467/1 "2021-02-08T19:03:46Z")

</div>

Hello,

I’m starting my first project in UE4 and I’m going crazy - I have to be missing something very simple here. I’ve assigned my melee attack to the left mouse button and coded the animation into a custom event as shown below. Every event tick the system checks if the boolean “Attacking Melee” is true - if it is the custom event executes. When the player clicks the left mouse that boolean should become true for half a second then become false again. However, when I run the game, as soon as I hit the attack button once, the animation loops indefinitely until I interrupt it by jumping. What could be missing from this? Every solution I’ve come across seems to be exactly what I have here.

Any help is greatly appreciated!

 ![329203-handleanimmelee.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/6/f56e40e4982a78a5c08767ab553ba61839602d31.jpeg)

 ![329204-eventtickmelee.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/7/9172da69c422390466ca11e17f54a7f84273f856.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_40cf7dcb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_40cf7dcb](https://forums.unrealengine.com/u/anonymous_user_40cf7dcb)\
**Post date:** [February 8, 2021, 9:12pm UTC](https://forums.unrealengine.com/t/melee-animation-loops-indefinitely-despite-boolean-that-triggers-it-at-tick-being-turned-off/478467/2 "2021-02-08T21:12:58Z")

</div>

Note: The booleans are turning off successfully, I have other custom events that can only trigger if the Attacking Melee boolean is off and I am able to trigger them while the melee loop is still happening
