Hello, quick question. I’m trying to load a saved game from my main menu. I’m calling the load function we created in the course, but I’m unable to cast to the Third Person Game Mode to load. i need to cast beacause its the only way to access to load fonctiun (it print nup)
Hover over the blue “NOTE” stripe and note what it says. (I’m assuming type mismatch) Which leads to: what type is the Game Mode variable you are trying to cast? Where is it set? Is it valid?
The NOTE probably indicates that the input pin “GameMode” variable you are using is already of type BP_ThirdPersonGamemode class. You can use “Get Gamemode” as the input for the cast instead.
A better way to do this would be to setup a game instance, and create a saved game variable inside of it, and call this functionality from that, you should be calling load game from save game class