Here’s the deal. When I spawn a HUD element, it works on both the client and the server. However, when I call the function OnHealthChanged, it only works on the server, while the client doesn’t update its UI.
I see. however, the code is not meant to change the HP itself, but rather just change what the UI displays. would I still need to do that on the server?
Of course. Every client is supposed to have their HP bar on the top left as seen on the image. when the health is changed, the BP_OnHealthChanged event is triggered and this lets the player know their current HP
This was a amassive oversight on my part. I had tried to cast the HUD screen directly to the health widget, rather than getting the Health widget from the HUD screen.