I’m looking to store a player variable that is the number of lives the character has, how would I store that variable so that in a new game session it still knows how many lives the character has, and can load that variable.
It’s a mobile game if that changes anything.
You use a SaveGame object. And store the variables you want to save there. You then load it on begin play or whenever you want.
Further information can be found here:
and
https://docs.unrealengine.com/latest/INT/Gameplay/SaveGame/Blueprints/index.html
Thanks, much appreciated
If you don’t care about keeping track of that variable between closing game and re-opening game, you can use the game instance as storage.
Here’s a tutorial on how to use the Game Instance