I have a simple multiplayer game, 2 players, each has it’s health value that is stored in MyGameState blueprint. I need to set both health values on each player’s canvas.
I’ve found [this] post that deals with the same problem. It says that each client only knows GameState of other clients and that is set in PlayerArray variable.
My problem is that PlayerArray elements fail to cast to MyGameState blueprint (that was derived from GameState class and that was set as a Game State class in GameMode).
I included snapshot for you to see what I did. I just want to set text to other client’s health value. What I do wrong?