Hi everyone !
I want to make a multiplayer game, something like the system of Clash Royal.
So i want when you open the game, you set your variable like Level, Gold, etc… from a server thanks this tutorial VaResLogin so i update this variables inside myGameInstance.
Then when you start a party against an other player how can you store the variables of each player’s game instance inside each player’s pawn ? I don’t want player have the same game instance because they will have the same level, gold, etc…
Thank you for your help! I’m still looking on internet
The PlayerState it’s spawned for each player on joining a session and can be accessed from other players.
You could create your variable inside it,and then on begin play or construct you can get your data from the server and set it to the variables in the playerstate.