Download

Multiplayer health bar

Hello all,
im having an issue I can’t get my head around I have a multiplayer game and I want to add a health bar for each character what’s the best way to go about this ? I was going to do a normal widget with a progress bar and cast to my player character but I don’t want to get player controller 0 do I need to make an index of player controllers ?

Make the Characters create their own widgets and use the replicated health from the character that created the widget. Make sure it is only the server that Set the health otherwise the health won’t be replicated to the other clients.

Could you please elaborate on this how do you update the progress bar when you take damage ?