What is the correct way to Save and Load PlayerState?

Hi

I’ve been trying to setup a PlayerState class for my Multiplayer game, this is my first time experimenting with this so I could definitely be doing something wrong somewhere but what is the right way to Load data stored in the player state for new joiners?

eg: a player dies, new player comes and sees dead player in their idle state eventhough they look dead for other players who are already ingame.

I tried saving their “Dead” variable to a new custom PlayerState (using a Run on Server then Multicast Events) then applying that to their owned pawn from the GameState each time a new player joins but that didn’t work for some reason, dead player still appears idling for new joiners.

Any help would be greatly appreciated!

Reason for that behavior is that multicasts don’t respect state, i.e. they are not meant for stateful changes. Read through this article so you know better.

I ended up just using GameState instead, it worked for literally every other actor so I did the same for players aswell, not sure exactly why GameState works but PlayerState doesn’t but this seems to be working well enough for me for now.