# Health Ticks (League of Legends style)

**URL:** <https://forums.unrealengine.com/t/health-ticks-league-of-legends-style/328087>\
**Category:** UI\
**Tags:** unreal-engine, UInterface, UI, UE4, Blueprint, question\
**Created:** [August 9, 2015, 2:16am UTC](https://forums.unrealengine.com/t/health-ticks-league-of-legends-style/328087 "2015-08-09T02:16:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Travistyse](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Travistyse](https://forums.unrealengine.com/u/Travistyse)\
**Post date:** [August 9, 2015, 2:16am UTC](https://forums.unrealengine.com/t/health-ticks-league-of-legends-style/328087/1 "2015-08-09T02:16:37Z")

</div>

Here’s a link to the thread that I have going at the moment on the forums: [Health Bar Ticks (League Style) and hud? - Blueprint - Unreal Engine Forums](https://forums.unrealengine.com/showthread.php?79660-Health-Bar-Ticks-(League-Style)-and-hud)

I’m just banging my head against the wall at the moment D:

Assuming that, for whatever reason, you can’t view the link the tl;dr is as follows:

I want to draw a health bar over an NPC which is rendered in the environment using widgets. Got it done already using Tesla’s video tutorials. BUT I also want to add health ticks (fancy speak for drawing rectangles ruler-style to indicate how much health is within the health bar) but don’t know how. I’ve done this in GameMaker but in UE4 I don’t seem to be able to draw rectangles on the health bar in the widget designer.

---

<div class="post-metadata">

**Author:** ![Maffinius](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maffinius/32/546414_2.png) [@Maffinius](https://forums.unrealengine.com/u/Maffinius)\
**Post date:** [November 14, 2021, 2:39pm UTC](https://forums.unrealengine.com/t/health-ticks-league-of-legends-style/328087/2 "2021-11-14T14:39:22Z")

</div>

Hey,

i just added a ruler texture to the healthbar (appended it x number of times where x is the maxhealth divided by 10). Then lerp the multiplyed alpha with your healthbar material.

 ![352154-healthbarstrokeinverted.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/e/0ceda5b1451c1d487e459d91ae4b1d652e264e26.png)

Ignore the v-tiling (not needed for your case).

 ![352151-ue4help1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/d/b0d2079d1c9561466a2e1b83683e3fad8a24ca05.png)

Result:

 ![352152-ue4help2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/c/e0cb9f30f561f5a1ef108a1b9792426048b6a3f5.jpeg)

 ![352153-ue4help3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/4/714244ba17d184232b841f7ab8d749b10e80c134.png)

Best regards,  
M

Edit: You can set the UTiling (number of strokes) with setMaterialParameter when the unit’s healthbar is created.
