# Killing pawn but capsule still follows player actor around

**URL:** <https://forums.unrealengine.com/t/killing-pawn-but-capsule-still-follows-player-actor-around/334200>\
**Category:** Blueprint\
**Tags:** capsule-component, physics-asset, unreal-engine, Blueprint, question\
**Created:** [October 4, 2015, 2:19am UTC](https://forums.unrealengine.com/t/killing-pawn-but-capsule-still-follows-player-actor-around/334200 "2015-10-04T02:19:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![SterlingY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SterlingY](https://forums.unrealengine.com/u/SterlingY)\
**Post date:** [October 4, 2015, 2:19am UTC](https://forums.unrealengine.com/t/killing-pawn-but-capsule-still-follows-player-actor-around/334200/1 "2015-10-04T02:19:13Z")

</div>

Folks,

After I kill off a NPC, it goes to ragdoll, but I suspect that it’s capsule still follows the player around because it keeps getting blocked by something I can’t see.

I can destroy the capsule but then when I stop the mesh simulation, it falls through the ground.

The simulation makes the NPC ragdoll wither around, which is fine for a few seconds, but then I want to stop the sim and just have the NPC lay where it is and do something about the capsule so that it isn’t having any collision.

-

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ef23e124](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ef23e124](https://forums.unrealengine.com/u/anonymous_user_ef23e124)\
**Post date:** [October 4, 2015, 2:52am UTC](https://forums.unrealengine.com/t/killing-pawn-but-capsule-still-follows-player-actor-around/334200/2 "2015-10-04T02:52:07Z")

</div>

turn off the simulation of physics for the mesh, and then kill the capsule?

just a thought,

---

<div class="post-metadata">

**Author:** ![SterlingY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SterlingY](https://forums.unrealengine.com/u/SterlingY)\
**Post date:** [October 6, 2015, 4:53am UTC](https://forums.unrealengine.com/t/killing-pawn-but-capsule-still-follows-player-actor-around/334200/3 "2015-10-06T04:53:48Z")

</div>

That didn’t solve the problem. I’m still at a loss, but I know a bit more. my NPC blueprint has the character’s capsule as its root object. After I’ve called to destroy it, my player character can still run into it, and the error is telling me that it is in the process of being destroyed, even though I may have done so 10 seconds earlier.

-

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ef23e124](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ef23e124](https://forums.unrealengine.com/u/anonymous_user_ef23e124)\
**Post date:** [October 6, 2015, 5:01am UTC](https://forums.unrealengine.com/t/killing-pawn-but-capsule-still-follows-player-actor-around/334200/4 "2015-10-06T05:01:39Z")

</div>

,

Can you change the “root” object for the NPC? Such that nothing is dependent on the Capsule?

It may be (and I don’t know, just speculating) that the capsule is not being removed because other “non-destroyed” objects are dependent on it.

---

<div class="post-metadata">

**Author:** ![SterlingY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SterlingY](https://forums.unrealengine.com/u/SterlingY)\
**Post date:** [October 6, 2015, 5:10am UTC](https://forums.unrealengine.com/t/killing-pawn-but-capsule-still-follows-player-actor-around/334200/5 "2015-10-06T05:10:08Z")

</div>

Jayice,

I assumed the same, but I can’t make an empty actor the root for some reason. I’m told that the capsule is inherited. If I destroy the entire NPC, then I don’t have any dead bodies laying around 😉

I could turn off all of it’s collision, but then it’s still following me around, not that should affect anything, just seems sloppy.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f721d2a6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f721d2a6](https://forums.unrealengine.com/u/anonymous_user_f721d2a6)\
**Post date:** [June 22, 2016, 12:56am UTC](https://forums.unrealengine.com/t/killing-pawn-but-capsule-still-follows-player-actor-around/334200/6 "2016-06-22T00:56:09Z")

</div>

Hey ,

Did you figure this out? I’m having a similar problem. 😕

---

<div class="post-metadata">

**Author:** ![SterlingY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SterlingY](https://forums.unrealengine.com/u/SterlingY)\
**Post date:** [June 22, 2016, 2:00am UTC](https://forums.unrealengine.com/t/killing-pawn-but-capsule-still-follows-player-actor-around/334200/7 "2016-06-22T02:00:54Z")

</div>

After looking at my BP from all those months ago, this is what I did:

I put a notify on the animation asset that plays the death motion (I opted not to use ragdoll, for other reasons)

The notify sends a trigger that disables the NPC’s capsule collision.

 ![95495-disable+collision.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/4/c6489f362430d2590eeb35dc4eeacdee5d04bd8b.jpeg)

There is an additional isDead variable being set in there, which is for my use only and has nothing to do with disabling the capsule. You don’t need that node.

If this helps, send some karma my way 🙂

-S

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f721d2a6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f721d2a6](https://forums.unrealengine.com/u/anonymous_user_f721d2a6)\
**Post date:** [June 22, 2016, 5:25pm UTC](https://forums.unrealengine.com/t/killing-pawn-but-capsule-still-follows-player-actor-around/334200/8 "2016-06-22T17:25:54Z")

</div>

Ah, I don’t think that fixed my problem. Probably because of the way I’m having the AI move. Thank you anyway!

---

<div class="post-metadata">

**Author:** ![seifer235](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@seifer235](https://forums.unrealengine.com/u/seifer235)\
**Post date:** [November 22, 2018, 1:31am UTC](https://forums.unrealengine.com/t/killing-pawn-but-capsule-still-follows-player-actor-around/334200/9 "2018-11-22T01:31:18Z")

</div>

hi here you have the answer destroy the capsule component of the enemy and no longer give you greetings

 ![260113-destroy-component.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/b/70b9d1b8034e84ca595d923eb8c83c58ae0cef45.jpeg)
