Hi
The player has 2 parts to their health system: battery and health.
The player’s battery slowly drains and once it reaches 0 it starts dealing damage to the player.
The client’s health and battery values appear to be completely unaffected by anybody else other than their own. Meaning using items to replenish their battery and/or health updates their values correctly.
However after a while they both die no matter what their health value is.
I’ve checked with print strings and there is no mistaking that their values are completely unchanged by anything, yet they are still dying.
What I suspect is that the server’s “hidden player” (on dedicated server ) is still counting down and dealing damage to itself whereupon it fires any events associated with health to all clients.
I am not completely sure how to resolve this issue or maybe my diagnosis is wrong.
All of this is handled within my player character BP.
This is the event set by a timer to “drain” the battery.
Inside the OnTakeDamage function:
To summarize:
Client players die after a set amount of time despite their health values being fine. Cause is the server still dealing damage to its own health which it then fires off the death event for all clients.