# How to stop/restart health regen

**URL:** <https://forums.unrealengine.com/t/how-to-stop-restart-health-regen/393526>\
**Category:** Community & Industry Discussion\
**Tags:** health, restart, unreal-engine, stop, question\
**Created:** [May 15, 2017, 1:24pm UTC](https://forums.unrealengine.com/t/how-to-stop-restart-health-regen/393526 "2017-05-15T13:24:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alakeram](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alakeram](https://forums.unrealengine.com/u/Alakeram)\
**Post date:** [May 15, 2017, 1:24pm UTC](https://forums.unrealengine.com/t/how-to-stop-restart-health-regen/393526/1 "2017-05-15T13:24:47Z")

</div>

Okay, so I finally have a regen system I want, But i cannot get my health to pause on damaged… i tried using gates/branches/flipflops etc anything to do with flows i cannot get it to work… if i could just have a ■■■■ elseif command instead of a branch i would know how to do this! lol. Maybe create a internal function to do all the branching and then return it to the event tick as an out?

im at a loss on this part, any help would be greatly appreciated! (i feel like this is a simple thing to do but im doin it wrong -\_-)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/6/b26dad26b731e65bb616f6d7c373b31c1ae10b2e.png)

---

<div class="post-metadata">

**Author:** ![Erumaru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Erumaru](https://forums.unrealengine.com/u/Erumaru)\
**Post date:** [May 15, 2017, 1:35pm UTC](https://forums.unrealengine.com/t/how-to-stop-restart-health-regen/393526/2 "2017-05-15T13:35:03Z")

</div>

Create event that will set your DamageTaken to true then delay then set again to false. Call this function instead of your delay.

---

<div class="post-metadata">

**Author:** ![Alakeram](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alakeram](https://forums.unrealengine.com/u/Alakeram)\
**Post date:** [May 29, 2017, 12:57am UTC](https://forums.unrealengine.com/t/how-to-stop-restart-health-regen/393526/3 "2017-05-29T00:57:21Z")

</div>

could you explain? as far as i know you can’t use delays in functions

---

<div class="post-metadata">

**Author:** ![Nachtmahr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nachtmahr](https://forums.unrealengine.com/u/Nachtmahr)\
**Post date:** [May 29, 2017, 1:15am UTC](https://forums.unrealengine.com/t/how-to-stop-restart-health-regen/393526/4 "2017-05-29T01:15:32Z")

</div>

I use a trigger Box to start regen as example

> **[Gyazo](https://gyazo.com/f34726d06320a74dfbe99c2ab95b5163)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

Than we start a timer. Note: you can also pause the trigger via handle whenever you want.

> **[Gyazo](https://gyazo.com/10836c171613f1dfbb95412d986a3678)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

Alternativly you can stuff it all into your Trigger BP

> **[Gyazo](https://gyazo.com/675807c549491e4a374988bdb79cd651)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

Its a very simple one but it will get you started. (btw you can do else ifs with branches 😜 the false is your else and if you add another branch after its basicly a elseif)

---

<div class="post-metadata">

**Author:** ![Alakeram](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alakeram](https://forums.unrealengine.com/u/Alakeram)\
**Post date:** [May 29, 2017, 2:14am UTC](https://forums.unrealengine.com/t/how-to-stop-restart-health-regen/393526/5 "2017-05-29T02:14:04Z")

</div>

yeah i tried the 2 branch method, but as soon as it turns to true it doesn’t switch back to false so it would constantly pause health regen instead of switching back to regen mode, or vice versa, it’ll switch back to regen but won’t change back to stop regen (im fairly new to UE4 engine and blueprinting so please forgive my stupidness lol)

---

<div class="post-metadata">

**Author:** ![Nachtmahr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nachtmahr](https://forums.unrealengine.com/u/Nachtmahr)\
**Post date:** [May 29, 2017, 2:33am UTC](https://forums.unrealengine.com/t/how-to-stop-restart-health-regen/393526/6 "2017-05-29T02:33:07Z")

</div>

Well thats not the fault of the Branch its your logic that never changes the Condition =) cant help you there. Use the timers they are easier to Controll in general. If Damage taken start it if Health is full stop them. Easy as that.

---

<div class="post-metadata">

**Author:** ![Erumaru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Erumaru](https://forums.unrealengine.com/u/Erumaru)\
**Post date:** [May 29, 2017, 5:17am UTC](https://forums.unrealengine.com/t/how-to-stop-restart-health-regen/393526/7 "2017-05-29T05:17:43Z")

</div>

Don’t use it in function. Create event.

---

<div class="post-metadata">

**Author:** ![Erumaru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Erumaru](https://forums.unrealengine.com/u/Erumaru)\
**Post date:** [May 31, 2017, 9:39am UTC](https://forums.unrealengine.com/t/how-to-stop-restart-health-regen/393526/8 "2017-05-31T09:39:19Z")

</div>

Try this nodes. Call you RecieveDamage node where your pawn does it and it will stop your regeneration. Good luck!

 ![139870-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/b/2cb5526ccadce6d46fd136465f1efa0f83df094d.png)
