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"

Multiplayer Scoreboard

Hello i've made a scoreboard for my game.And i've ran into a problem the scorebox on the server shows for example 2 players both named:(Name1) and on client it shows both players named : (Name2).I want it to show player 1 named Name1 and player 2 named Name2

I can't seem to figure out what i'm doing wrong does anyone have any suggestions?

Product Version: UE 4.19
Tags:
more ▼

asked May 24 '18 at 12:40 PM in Blueprint Scripting

avatar image

GreenEclipse
6 1 6 8

avatar image HarryHighDef May 24 '18 at 01:01 PM

Can we see the code where you get the names?

avatar image GreenEclipse May 24 '18 at 02:10 PM

Sure here is the code in my third person controller : ThirdpersonBP and here is the code i have written in the PlayerScore widget :PlayerScoreWB

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

3 answers: sort voted first

Hello,

A screenshot would be nice so that we can see the blueprint scripts. You could take a look at this tutorial and rebuild a scoreboard from the ground up to potentially navigate around your problem. Here is the link - https://www.youtube.com/watch?v=ZseexEWWOJg

more ▼

answered May 24 '18 at 01:50 PM

avatar image

de_lay.dsp
33 1 3

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

Just to let you know, I have never written a scoreboard. But I did a little research just now and found this - https://answers.unrealengine.com/questions/499819/steam-leaderboards-cant-get-it-to-write-score-valu.html It looks as though one of the users had used an Integer to differentiate between the name. Not sure if this is 100% the answer but might be worth looking into.

more ▼

answered May 24 '18 at 02:53 PM

avatar image

de_lay.dsp
33 1 3

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

I noticed that in your GetPlayerNames event, you are getting the Steam ID from the Player controller. Clients cannot access playercontrollers that exist on the Server, they can only access PlayerStates. This might be why it's getting the wrong ID.

more ▼

answered May 24 '18 at 06:09 PM

avatar image

mightyenigma
3.8k 18 24 21

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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