# {SOLVED}Stop event any damage from looping death animation

**URL:** <https://forums.unrealengine.com/t/solved-stop-event-any-damage-from-looping-death-animation/466330>\
**Category:** Character & Animation\
**Tags:** death, unreal-engine, looping, stop, question\
**Created:** [June 6, 2020, 4:21pm UTC](https://forums.unrealengine.com/t/solved-stop-event-any-damage-from-looping-death-animation/466330 "2020-06-06T16:21:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_af3bcfeb1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_af3bcfeb1](https://forums.unrealengine.com/u/anonymous_user_af3bcfeb1)\
**Post date:** [June 6, 2020, 4:21pm UTC](https://forums.unrealengine.com/t/solved-stop-event-any-damage-from-looping-death-animation/466330/1 "2020-06-06T16:21:56Z")

</div>

I followed a tutorial on and was able to get my NPC AI to die.

I did some other modifications to fit my needs and using some montage animations for getting hit and attacking using Behavior tree

However every-time I shoot it with my gun using line trace and apply damage, the event any damage keeps re-triggering the death animation.

I have detached from controller, destroyed capsule component used do once.

I even separated the death animation using a Bool of isDead and set the death section into its own function that gets called if enemyhealth \<.1 (to ensure any decimal damage doesn’t keep him alive

here is my setup:

 ![303700-death-loop-issue.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/c/cfcdcfc0e35f275b572b25bc6a28336759d1d940.jpeg)

What am I doing wrong?

 ![303712-death-loop-issue.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/5/b3588dad659ed200f495b26b2cda078a448141fb.jpeg)

**SOLUTION:  
I added a stop logic when health goes under .1 and selected the brain controller for the AI**

![303714-death-loop-issue.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/5/5d5da808e24a08bdf4f0099b9ce178ad2a4ae92f.jpeg)
