Client Side of Player Controller
I am making a game where players have a name and this name is stored in GameInstance class.
Now, when I try to run a multiplayer lan game, I want each client to set their name inside player controller class. Here starts the problem.
If I try to set player name on the server side of player controller, every player is named the same as session creator' name. Why? Because server side has one and only game instance which holds session creator' name.
Then I tried using "is server" and if that is false, set the player name. Sounded like it would solve my problems, but this time, session creator didn't have his name set inside player controller. Because he was the server...
I can't come up with a solution at the moment. So how do I overcome this problem? I found out "Get Remote Role", but I need some explanation about how to use it.
Thanks in advance for any help.
asked Feb 26 '17 at 12:10 AM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here