# Setting Health With Parameters

**URL:** <https://forums.unrealengine.com/t/setting-health-with-parameters/503598>\
**Category:** Blueprint\
**Tags:** parameters, viewport, health-bar, unreal-engine, UE4-25, question\
**Created:** [March 3, 2022, 6:44am UTC](https://forums.unrealengine.com/t/setting-health-with-parameters/503598 "2022-03-03T06:44:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Try\_Another](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/try_another/32/88719_2.png) [@Try\_Another](https://forums.unrealengine.com/u/Try_Another)\
**Post date:** [March 3, 2022, 6:44am UTC](https://forums.unrealengine.com/t/setting-health-with-parameters/503598/1 "2022-03-03T06:44:16Z")

</div>

Ok, I just tried to do a healthbar based on this:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/0/c304e018cd90fb22cf895cc85ff24ea9419ed84f.jpeg "Unreal Concepts - Different Shaped Progress Bars ( UE4 )") ](https://www.youtube.com/watch?v=0Q53V-KreDg)

Now the problem is how can I hook up health thins thing? I’m using health component so I tried this

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/3/29369345dfa593bde492c87e2f817a4655d94aef.png)  
Tried several things too but It didn’t work

---

<div class="post-metadata">

**Author:** ![OmegaMinus1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/omegaminus1/32/252513_2.png) [@OmegaMinus1](https://forums.unrealengine.com/u/OmegaMinus1)\
**Post date:** [March 3, 2022, 8:01am UTC](https://forums.unrealengine.com/t/setting-health-with-parameters/503598/2 "2022-03-03T08:01:30Z")

</div>

Try multiplying, Alpha = health \* 0.01 for input to your custom event

You can use Alpha = (Health / MaxHealth) if your health is capable going above 100

---

<div class="post-metadata">

**Author:** ![Try\_Another](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/try_another/32/88719_2.png) [@Try\_Another](https://forums.unrealengine.com/u/Try_Another)\
**Post date:** [March 3, 2022, 8:47am UTC](https://forums.unrealengine.com/t/setting-health-with-parameters/503598/3 "2022-03-03T08:47:55Z")

</div>

Theres no max health but It did changed colors. It seems It Doesn’t respond to parameters of material.

---

<div class="post-metadata">

**Author:** ![Try\_Another](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/try_another/32/88719_2.png) [@Try\_Another](https://forums.unrealengine.com/u/Try_Another)\
**Post date:** [March 3, 2022, 8:51am UTC](https://forums.unrealengine.com/t/setting-health-with-parameters/503598/4 "2022-03-03T08:51:44Z")

</div>

> [@Try\_Another](#):
>
> Theres no max health but It did changed colors. It seems It Doesn’t respond to parameters of material.

Solved it!

> [@OmegaMinus1](#):
>
> Try multiplying, Alpha = health \* 0.01 for input to your custom event
> 
> You can use Alpha = (Health / MaxHealth) if your health is capable going above 100

Thanks!
