# Regenerate Health After AI Actor Destroyed

**URL:** <https://forums.unrealengine.com/t/regenerate-health-after-ai-actor-destroyed/478062>\
**Category:** Community & Industry Discussion\
**Tags:** health, Destroy-Actor, attack, unreal-engine, question\
**Created:** [January 31, 2021, 5:48pm UTC](https://forums.unrealengine.com/t/regenerate-health-after-ai-actor-destroyed/478062 "2021-01-31T17:48:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kumaru22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kumaru22](https://forums.unrealengine.com/u/Kumaru22)\
**Post date:** [January 31, 2021, 5:48pm UTC](https://forums.unrealengine.com/t/regenerate-health-after-ai-actor-destroyed/478062/1 "2021-01-31T17:48:34Z")

</div>

![Hello, Im pretty new to unreal and am trying to make a little Shark game project. I made a fish AI that swims/flys around and when The Player attacks it, it gets destroyed if it detects hit and attack at the same time, that works fine but I want the Player to regenerate health after the AI Actor gets destroyed and somehow it wont work. I cant find any tutorials or tips regarding that, this is my last hope.

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [February 1, 2021, 5:03pm UTC](https://forums.unrealengine.com/t/regenerate-health-after-ai-actor-destroyed/478062/2 "2021-02-01T17:03:15Z")

</div>

Hello! There are several things that can be useful. You can take

- **Tick** event, **Delay** node and **Branch** node with codition of Player Health is not full
- Custom event, **While** loop node and **Delay** node

The approach is like this: define when you want to start regenerating (after shark ends overlap or just after the moment of hurt), use some repeating node (Custom event with **While** or Tick) and some control of frequency (Delay).
