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"

Variables cast from GameMode not displaying in HUD?

Hey friends, I'm working on a multiplayer games. There is a scoreboard displaying on the top of the screen, the countdown time and two scores are binding to the functions in BP_UIbar (User Widget), however, they are not showing in client window. I add a print string in those functions, it works fine. alt text

alt text

alt text

alt text

Product Version: UE 4.12
a.png (1.3 MB)
b.png (315.5 kB)
c.png (296.6 kB)
d.png (411.5 kB)
more ▼

asked Sep 18 '16 at 08:35 AM in Blueprint Scripting

avatar image

1 2

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

1 answer: sort voted first

Hey jsbug,

The GameMode when running in a multiplayer game is server side only. This means that if a client tries to get a reference to the Game Mode when it is truly a client, it will fail as it doesn't have any access to the server directly. If you want to replicate information stored in the Game Mode, you will have to explicitly do so by calling a client function on the Character/ Pawn or PlayerController from the Game Mode.

more ▼

answered Sep 19 '16 at 05:37 PM

avatar image

ImVawx ♦♦ STAFF
6.8k 114 18 128

(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