Problem when loading games in multiplayer
Thanks for reading and sorry for my bad english :P
Well, in my game, each player has a lot of saved variables like race and name. But in a multiplayer session, the "load variables from saved games" function loads for every player with the local save of who is playing.
This function is associated with the Begin Play event.
How can I fix this? Thanks!
You have to make sure those variables are set on the server. To get the variables from that player you need to do some extra work.
Create a function in your player controller which gets those variables and returns them (ideally in a struct).
In your game mode on "Event post login" (when a new player connected) you get a reference to that players player controller.
Get the variables from the function you created and apply them to the possessed character of that player controller.
You might be able to do this via the player controller only by using "Run on Server" custom events but I'd have to test that first.
answered Oct 19 '15 at 07:33 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here