I am attempting to implement a load game feature in my main menu and want to direct my load game script to fire only when the “Load Game” variable is set to true. I believe I am setting the bool properly in the widget blueprint however after I load the level and have the GameMode BP print the boolean value it stays “false” I feel like I am missing something obvioius but after searching for hours I can’t figure it out and hope someone can show me the magic light bulb!
Thanks Looniper but I am having trouble following how I can apply that to my scenario…I am storing my bool in the gamemode and casting to it to set it. (wanting to know why it isn’t actually setting) Are you saying I should be creating a reference in the widget to store the boolean variable?
I was thinking that the GameMode loaded first then the level then actors in that level…from what you are saying though the mode loads after the level so it can’t set the boolean in the mode because it does not exist yet correct?
There are various ways to pass data between blueprints, but if there is any chance of Multiple players you want the connection between them to start With the Player Character.
More accurately, the GameMode is "Re"loaded each time the level changes.
That is why you are getting the False - as far as the game knows you never set the value (once the new level loaded). It is reading the value set in the Blueprint itself, not what was loaded into memory (because that was replaced)
Ahhaa! Yep that makes perfect sense and it finally clicked for me. Thank you so very much for taking the time to explain it to me and lay the process out step by step! It is greatly appreciated.