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"

Message from GameMode to Players(Controllers)

Hi. I have some problem with understanting this topic. I have GameMode which decide when to run Warm-Up for example. PlayerController have event with that information. How can I run this event on all clients when GameMode will decide? I even tried to make for loop, but only server can see what happended. Anyway thanks for help.

Product Version: UE 4.20
Tags:
more ▼

asked Sep 30 '18 at 10:45 AM in Blueprint Scripting

avatar image

Porshe911
6 1 2

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

sounds like you don't know about replication or RPCs. Specifically Multicast is probably what you need to learn about.

more ▼

answered Sep 30 '18 at 04:34 PM

avatar image

mightyenigma
3.7k 17 18 14

avatar image Porshe911 Sep 30 '18 at 06:00 PM

With normal flow i don't have problem with replication. Let me explain. I have PlayerController which has event to show information on the screen. When GameMode decide i want to run this event on every controller, but i can not setup it properly. Maybe do you have some examples how to do it?

avatar image Porshe911 Sep 30 '18 at 06:14 PM

Ok, something was wrong with the game mode set-up. I just reloaded all classes and it normal works. I am sorry for the spam. Thank you anyway.

(comments are locked)
10|2000 characters needed characters left

if you need to replicate a variable or event to all clients, put it in the Game state and not in the Game mode. gamemode only concerns the server and does not replicate.

more ▼

answered Nov 23 '18 at 07:44 AM

avatar image

mightyenigma
3.7k 17 18 14

(comments are locked)
10|2000 characters needed characters left
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