# How to find if the character has equel to or less health to 0 then destroy it?

**URL:** <https://forums.unrealengine.com/t/how-to-find-if-the-character-has-equel-to-or-less-health-to-0-then-destroy-it/487035>\
**Category:** Character & Animation\
**Tags:** Destroy-Actor, unreal-engine, question\
**Created:** [August 4, 2021, 5:39pm UTC](https://forums.unrealengine.com/t/how-to-find-if-the-character-has-equel-to-or-less-health-to-0-then-destroy-it/487035 "2021-08-04T17:39:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danny2391](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@danny2391](https://forums.unrealengine.com/u/danny2391)\
**Post date:** [August 4, 2021, 5:39pm UTC](https://forums.unrealengine.com/t/how-to-find-if-the-character-has-equel-to-or-less-health-to-0-then-destroy-it/487035/1 "2021-08-04T17:39:19Z")

</div>

i cant get this working pls help!

---

<div class="post-metadata">

**Author:** ![BatYaggy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BatYaggy](https://forums.unrealengine.com/u/BatYaggy)\
**Post date:** [August 4, 2021, 6:53pm UTC](https://forums.unrealengine.com/t/how-to-find-if-the-character-has-equel-to-or-less-health-to-0-then-destroy-it/487035/2 "2021-08-04T18:53:07Z")

</div>

Create a variable to represent health. Then each frame, check to see if the health is \<= 0. If true, destroy the actor.

---

<div class="post-metadata">

**Author:** ![Hybris6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hybris6](https://forums.unrealengine.com/u/Hybris6)\
**Post date:** [August 4, 2021, 8:29pm UTC](https://forums.unrealengine.com/t/how-to-find-if-the-character-has-equel-to-or-less-health-to-0-then-destroy-it/487035/3 "2021-08-04T20:29:22Z")

</div>

https://www.youtube.com/embed/ctL_6H--5c8?feature=oembed&wmode=opaque&list=PLNTm9yU0zou4HL7SAyIQoCqJRJ5QeQAl8

https://www.youtube.com/embed/cBx5w89e3N4?feature=oembed&wmode=opaque&list=PLNTm9yU0zou4HL7SAyIQoCqJRJ5QeQAl8

Code Like Me have some excellent tutorials on this ^^ if you want to go more in depth
