x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Client Side of Player Controller

Hello

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.

Product Version: UE 4.15
Tags:
more ▼

asked Feb 26 '17 at 12:10 AM in Blueprint Scripting

avatar image

Corpse0327
186 27 25 39

avatar image Corpse0327 Feb 26 '17 at 05:28 PM

Ahem! Bump!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question