# Actor not getting destroyed

**URL:** <https://forums.unrealengine.com/t/actor-not-getting-destroyed/429865>\
**Category:** Blueprint\
**Tags:** destroying-actors, garbage-collection, unreal-engine, Blueprint, question\
**Created:** [July 23, 2018, 1:11pm UTC](https://forums.unrealengine.com/t/actor-not-getting-destroyed/429865 "2018-07-23T13:11:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViceVersa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ViceVersa](https://forums.unrealengine.com/u/ViceVersa)\
**Post date:** [July 23, 2018, 1:11pm UTC](https://forums.unrealengine.com/t/actor-not-getting-destroyed/429865/1 "2018-07-23T13:11:25Z")

</div>

in one of my shooter projects, i have an npc that can be shot and killed. It then applies physics to the mesh, fizzles out its material, and destroys it. Now occasionally, One of the npcs wont get destroyed, it just has a seizure on the ground, and then Ill get a bunch of errors from the widget blueprint for its healthbar that the actor is pending kill. It seems to know that DestroyActor was called, but the actor is not actually getting destroyed. Any Ideas?

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [July 23, 2018, 2:15pm UTC](https://forums.unrealengine.com/t/actor-not-getting-destroyed/429865/2 "2018-07-23T14:15:32Z")

</div>

Maybe adding an IsValid check will both prevent the widget error and allow the destroy to finish? hopefully.

---

<div class="post-metadata">

**Author:** ![ViceVersa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ViceVersa](https://forums.unrealengine.com/u/ViceVersa)\
**Post date:** [August 15, 2018, 4:32pm UTC](https://forums.unrealengine.com/t/actor-not-getting-destroyed/429865/3 "2018-08-15T16:32:34Z")

</div>

it turned out to be a logic error i fixed it. thanks tho
