# Checking if an actor is destroyed

**URL:** <https://forums.unrealengine.com/t/checking-if-an-actor-is-destroyed/341704>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [December 17, 2015, 11:19am UTC](https://forums.unrealengine.com/t/checking-if-an-actor-is-destroyed/341704 "2015-12-17T11:19:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hardishane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hardishane](https://forums.unrealengine.com/u/Hardishane)\
**Post date:** [December 17, 2015, 11:19am UTC](https://forums.unrealengine.com/t/checking-if-an-actor-is-destroyed/341704/1 "2015-12-17T11:19:36Z")

</div>

I’m having an enemy with sword and shield attacking the player armed with a gun. The shield, if intercepting the projectile, mitigates the damage done to the enemy, and if hit enough is destroyed. On death of enemy, his sword and shield is destroyed along with the body of the enemy. But as the shield may have been destroyed before the enemy dies, get the following message in the Message Log-Play in Editor:

Cannot access ‘Test\_Shield\_BP\_C\_2’. It is pending kill. Property: ‘ShieldTest’ from node DestroyActor in graph ‘EventGraph’ in blueprint EnemyCharacter

What I’m looking for, and have not yet found, is a way to check if the shield is destroyed before trying to destroy it on enemy death.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_359f4d3c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_359f4d3c](https://forums.unrealengine.com/u/anonymous_user_359f4d3c)\
**Post date:** [December 17, 2015, 12:42pm UTC](https://forums.unrealengine.com/t/checking-if-an-actor-is-destroyed/341704/2 "2015-12-17T12:42:46Z")

</div>

Assuming your character holds a reference to the shield, you could set this variable to None when the shield is destroyed. You can then simply use an _IsValid_ check to see whether the shield still needs to be destroyed.

---

<div class="post-metadata">

**Author:** ![Hardishane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hardishane](https://forums.unrealengine.com/u/Hardishane)\
**Post date:** [December 17, 2015, 11:42pm UTC](https://forums.unrealengine.com/t/checking-if-an-actor-is-destroyed/341704/3 "2015-12-17T23:42:16Z")

</div>

Thank you, that solved it
