How t set a variable in a widget from a Game mode?
Hi, I want to make a scoreboard widget. For that I need to get all the Player controllers that are in my game, I do this with the Logged in/out events in the game mode blueprint + an array variable. But how I do forward the value of this variable to my Widget?
Is there a better way to get a list of all the controllers?
asked Jun 02 '16 at 08:42 PM in Blueprint Scripting
You should Store Scores in a Player State they are replicated and exist on all clients. You can easily access them from the GameState like this https://gyazo.com/6da544f9f935a51341aba8e3175ea1aa or directly from the Controller (his own State that gets replicated)
Also take a look at this Handy Compedium made by eXi http://cedric.bnslv.de/Downloads/UE4_Network_Compendium_by_Cedric_eXi_Neukirchen.pdf
Good Luck and Have Fun Coding =)
answered Jun 02 '16 at 09:06 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here