unreal engine subsystem 2nd player error

Singleplayer

Gotcha, so if your project is singleplayer and you mean you got a new character in and the health bar stopped functioning, it could be for a myriad of reasons. Is your health bar a 3D widget component attached to the NPC or is it a widget tied to the player viewport?

In case of the 3D widget, it should be tied directly to the values of the health so that should remain accurate.

In the case of tying it directly into your UI, it’s likely that your new player just got the reference and the HP UI element, but it could be a reference missing after the fact or possibly that you’re calling from the damaged actor to the UI which will unfortunately cause this problem where new respawned players may not be “up to date” with the information.

Could we see how you handle the health bar and how the variable is read?


Multiplayer

If your project is multiplayer, and has games where players can join in and out, you’ll need to work with RepNotifies to make sure all clients get the information updated when they join. Example video below:

Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.