# Making a "resurrecting" character

**URL:** <https://forums.unrealengine.com/t/making-a-resurrecting-character/453597>\
**Category:** Character & Animation\
**Tags:** health, death, Destroy-Actor, unreal-engine, question\
**Created:** [August 8, 2019, 9:26pm UTC](https://forums.unrealengine.com/t/making-a-resurrecting-character/453597 "2019-08-08T21:26:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f189b72c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f189b72c](https://forums.unrealengine.com/u/anonymous_user_f189b72c)\
**Post date:** [August 8, 2019, 9:26pm UTC](https://forums.unrealengine.com/t/making-a-resurrecting-character/453597/1 "2019-08-08T21:26:29Z")

</div>

Hello again. Here’s another one. I’m working on a ‘resurrecting’ character which happens to be ai. Here’s how i want it to work; after receiving enough damage from various weapons to bring its health down to zero, instead of dying and destroying as with normal characters, I want this one to run out of health, then set the health back to its full value, and on this ‘second’ life, after it has received enough damage to bring its health to zero can it then finally die and destroy. heres my trial

 ![284586-resurrect.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/7/5272ae7503717e4b75f48bb2491a742a1118d15f.jpeg)

and this worked fine up till the point where it was supposed to finally die and destroy but this didnt happen as it kept running out of and restoring its health whenever it was damaged. Any ideas on how to make it die the second time?

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [August 8, 2019, 10:16pm UTC](https://forums.unrealengine.com/t/making-a-resurrecting-character/453597/2 "2019-08-08T22:16:07Z")

</div>

Hey,  
You could always try something like this. It’s pretty straight forward.  
When health reaches 0, you set boolean Died Once to true, prevent target from taking any damage (so it doesn’t’ trigger 2nd death right away), hide actor in game, wait 2s, replenish hp to full and allow damage, finally show actor in game.

 ![284592-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/0/880ef8fec676fb01e69a27dd574f225043d2f044.png)

 ![284593-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/5/715353fc72a5950542d861a96ca0ccb9dcf96ed0.png)
