Variables cast from GameMode not displaying in HUD?
Hey friends, I'm working on a multiplayer games. There is a scoreboard displaying on the top of the screen, the countdown time and two scores are binding to the functions in BP_UIbar (User Widget), however, they are not showing in client window. I add a print string in those functions, it works fine.
asked Sep 18 '16 at 08:35 AM in Blueprint Scripting
The GameMode when running in a multiplayer game is server side only. This means that if a client tries to get a reference to the Game Mode when it is truly a client, it will fail as it doesn't have any access to the server directly. If you want to replicate information stored in the Game Mode, you will have to explicitly do so by calling a client function on the Character/ Pawn or PlayerController from the Game Mode.
answered Sep 19 '16 at 05:37 PM
ImVawx ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here