This tutorial shows how to visually represent a healthbar in a tally mark style. It makes use of a few variables we add to the Player as well as some functions added to the player. We use widgets to represent the healthbar.
https://dev.epicgames.com/community/learning/tutorials/MPke/unreal-engine-tally-mark-style-healthbar