Client Playerstate in HUD sometimes invalid
im trying to get playerstate in my HUD's BeginPlay(). Sometimes, in PIE multiplayer with multiple players, playerstate is invalid.
This problem never occurs server-side. With 2 players it does sometimes (maybe 1 of 10 times) on clientside. With 10 player it occurs every time with every player.
I can reproduce this problem in a new project (with startercontent). Just add a new HUD BP with this:
Im probably doing something wrong, but what am i missing? Thanks for you help!
asked Dec 14 '14 at 09:56 PM in Blueprint Scripting
EventBeginPlay might be too early to access a playerState. in your GameMode blueprint, you can use EventPostLogin() to know when a player is finished being set up properly, so it should have a playerState by that point.
answered Dec 15 '14 at 05:39 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here