HUD is ClientSide. So if you want the PlayerCharacter of that Client, you just call “GetPlayerCharacter” with Index 0.
The Index itself doesn’t matter online, so you can’t use 1, 2 etc, for other clients. This is only if you have local Players (split screen etc).
But since you only need the Client who owns the Widget, the Index 0 should be fine.
Now you need to make sure to replicate the Current Health. In your Widget Screenshot, I see that you are correctly getting Current and Max HP
as well as dividing them to get the 0 to 1 ratio. So that’s good.
Now you need to set the Variable (CurrentHealth) to Replicate. And of course the PlayerCharacter needs to replicate too, but i guess that’s already happening.
So are you sure that your CurrentHealth Variable is correctly replicating?
In C++, you need to add the Replicated specifier to the UPROPERTY Header and also put the Variable into the “GetLifeTimeRepliactedProps” function.
In BP it’s enough to just edit the Variable and selected “replicated”.
If that’s still not working, then please show me your Code (C++/BP) and explain to me what exactly is happening (+ upcoming errors/warnings)