Modern MMORPG Locomotion System

Add Health Points

Step 1

Migrate the new HP bar widget blueprint.

Step 2

Add the HP bar on BeginPlay in the Inventory Component. Create a new variable for the HP bar.

Step 3

Create a new function called Change Health Points. Add the setup shown in the picture by hand or copy paste from a new MMLSE project to save time.

The variable CurrentHP is a RepNotify with replication condition Owner Only.

Step 4

Add the nodes in the OnRep_CurrentHP function.