As per title, I’ve been implementing a simple UI to show the scores for each player in a MP game.
In doing that, I noticed that the HUD’s owning PlayerController always has a nullptr for PlayerState on all clients, the server has a valid pointer.
As such, I can’t seem to get hold of the score reliably from the playerstate for the client side HUD
I *can *get the controlled Pawn from the PlayerController, and that does have a valid pointer to the PlayerState on both client and server, but obviously I’d like the score to persist as the player is respawned etc…
This is using UE 4.25.4. I did something similar ages ago in 4.23.1 (an asteroids clone) and that does have a valid playerstate in the playercontroller, just checked.
Has there been some structural change re: PlayerStates in 4.25.4… I’ve searched the forums but haven’t been able to find anything that appears relevant.
I may be missing the obvious here, shouldn’t a PlayerController always have a valid PlayerState pointer?