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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Waiting for all players before do something

Hi everybody!

I would like to know how can I check if all players (server + clients) has finished their travelling to the map, before procedurally begin the generation of the map. Better than my actual delay, of course x) I am under a fonctionnal listen server (lan/steam).

I tried to check the "Num Travelling players" from the server game mode, but it is always 0.

Thank you for help! Kiss <3

Product Version: UE 4.18
Tags:
more ▼

asked Nov 11 '17 at 09:19 AM in Blueprint Scripting

avatar image

Goetheus
12 3 8 8

avatar image Goetheus Nov 12 '17 at 04:46 PM

No idea? :/

avatar image Shadowriver Nov 12 '17 at 05:56 PM

Did you tried track based on OnPostLogin event?

avatar image Goetheus Nov 14 '17 at 03:00 PM

Hi @Shadowriver! I can't call OnPostLogin because I use seamless level! I tried to see with the handle starting new player. It detects well all player controllers. But I don't know simply how to "wait" all player controllers...

avatar image Samuelb Nov 14 '17 at 09:31 PM

why would seamless travel affect on post login?

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

2 answers: sort voted first

You can start with has authority in event tick (authority) so only host does the rest. From authority output get all actors of class (player controller), get array length and check if its equal to the player count needed.

more ▼

answered Nov 14 '17 at 07:56 PM

avatar image

xd majiik
30 5 7 11

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

answered Nov 14 '17 at 09:33 PM

avatar image

Samuelb
283 9 19 22

(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