# Enemy keeps punching after death

**URL:** <https://forums.unrealengine.com/t/enemy-keeps-punching-after-death/388179>\
**Category:** Character & Animation\
**Tags:** death, combat, unreal-engine, question, Blueprint\
**Created:** [March 17, 2017, 7:38am UTC](https://forums.unrealengine.com/t/enemy-keeps-punching-after-death/388179 "2017-03-17T07:38:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_47b9dff7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47b9dff7](https://forums.unrealengine.com/u/anonymous_user_47b9dff7)\
**Post date:** [March 17, 2017, 7:38am UTC](https://forums.unrealengine.com/t/enemy-keeps-punching-after-death/388179/1 "2017-03-17T07:38:37Z")

</div>

- When enemy has died he keeps punching when character is in range.
- If I move character so enemy is off screen and then go back, enemy does not punch
- I have tried ‘StopAnimation’, turning IsPunching to false with a Boolean, and none of these work.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_af188f45](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_af188f45](https://forums.unrealengine.com/u/anonymous_user_af188f45)\
**Post date:** [March 17, 2017, 7:58am UTC](https://forums.unrealengine.com/t/enemy-keeps-punching-after-death/388179/2 "2017-03-17T07:58:02Z")

</div>

We need to see your bleuprint to be able to help with this.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_47b9dff7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47b9dff7](https://forums.unrealengine.com/u/anonymous_user_47b9dff7)\
**Post date:** [March 17, 2017, 2:23pm UTC](https://forums.unrealengine.com/t/enemy-keeps-punching-after-death/388179/3 "2017-03-17T14:23:52Z")

</div>

- This is the enemy health value and death from the enemy blueprint
- Once the enemy is dead, he has no other movement, other than the punching, which comes from an animation Montage

 ![130522-enemyhealth.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/6/44649369a660941aa40330a7e79d659e77819ded.jpeg)

---

<div class="post-metadata">

**Author:** ![Tzaks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tzaks](https://forums.unrealengine.com/u/Tzaks)\
**Post date:** [March 17, 2017, 3:53pm UTC](https://forums.unrealengine.com/t/enemy-keeps-punching-after-death/388179/4 "2017-03-17T15:53:10Z")

</div>

You are not stoping the animation anywhere.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_47b9dff7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47b9dff7](https://forums.unrealengine.com/u/anonymous_user_47b9dff7)\
**Post date:** [March 17, 2017, 4:14pm UTC](https://forums.unrealengine.com/t/enemy-keeps-punching-after-death/388179/5 "2017-03-17T16:14:27Z")

</div>

I have tried ‘StopAnimation’ node after the ‘SetCharacterDeath’, and nothing changed. Where else could I put it, or what other nodes?

---

<div class="post-metadata">

**Author:** ![Tzaks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tzaks](https://forums.unrealengine.com/u/Tzaks)\
**Post date:** [March 17, 2017, 4:28pm UTC](https://forums.unrealengine.com/t/enemy-keeps-punching-after-death/388179/6 "2017-03-17T16:28:50Z")

</div>

Connect it to Set Enemy Death.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_47b9dff7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47b9dff7](https://forums.unrealengine.com/u/anonymous_user_47b9dff7)\
**Post date:** [March 17, 2017, 4:36pm UTC](https://forums.unrealengine.com/t/enemy-keeps-punching-after-death/388179/7 "2017-03-17T16:36:07Z")

</div>

Whoops, sorry, that’s what I meant.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_47b9dff7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47b9dff7](https://forums.unrealengine.com/u/anonymous_user_47b9dff7)\
**Post date:** [March 18, 2017, 3:26am UTC](https://forums.unrealengine.com/t/enemy-keeps-punching-after-death/388179/8 "2017-03-18T03:26:53Z")

</div>

It was my fault…I was trying to place the stop animations/montage stop into the character blueprint instead of into the animation blueprint.
