I saved two arrays in the game instance, one for the player id (Steam id) and the other for the player state. And the index of each array matches the other.
Right before executing the seamless travel console command, I’m looping the player states and saving them in the game instance.
Now after the seamless travel is done and the map is loaded, I need to fetch the player state for each player, but how am I to send them the correct player state?
The players now don’t have any data after the seamless travel, so they don’t have any id assigned to them. All I could think of is fetching it from the game instance on each client (in a way or another) but that isn’t a secure way because the variable is stored locally and can be manipulated with.
Any suggestions?