Here is a quick tutorial on how to add a health bar to your HUD using C++ and the Unreal Engine Blueprint system.
In this video I will explain how to link the progression of your health bar with the current health of your pawn.
Recorded on an MSI Raider GE67HX.