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"

Event when all players have loaded map?

Hey, so i have a problem, i have a multiplayer game where all players starts as spectator and then when the match begins the server will spawn a character for all players and then all players will posses their specific character. The problem is that i dont know when to make the game spawn them?

The spawn process happends inside the Game Mode so my first idea was to use PostLogin, but that does not work since i use seamless traveling, everyone "PostLogins" at the Lobby so it never gets called.

I Cant use Game Mode "Event Begin Play" because then only the Server gets a character since he is the only one who is connected at that time.

My solution right now is for the Host to manualy click a Start Match button to spawn all the characters. But that doesnt feel very quality-ish

Is there somehow i can check if all players have loaded the level? If so then i can use that as an event to start.

Help would be appreciated! ^^

Thanks in Advance!

Product Version: UE 4.13
more ▼

asked Sep 29 '16 at 03:36 PM in Using UE4

avatar image

77 24 33 41

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

2 answers: sort voted first

Hey yghtim,

I am almost certain you'll have to manage this yourself. My recommendation is that if you know how many players there are going to be in the game (like 5v5), have a integer value that gets incremented by 1 for each on the "OnPostLogin" event. When that integer value is equal to the total number of players the game is expecting, you can have another custom event fire for your "AllPlayersHaveLoaded", or whatever you want to name it.

more ▼

answered Sep 29 '16 at 03:47 PM

avatar image

ImVawx ♦♦ STAFF
6.8k 114 17 127

avatar image yghtim Sep 29 '16 at 05:01 PM

as i said in the post, PostLogin does not work, because that only works in the lobby since thats where everyone logs in, i need an event that checks if a player has loaded the map or not

avatar image ImVawx ♦♦ STAFF Sep 29 '16 at 05:17 PM

So when a player decides to change a map, you need an event? Or, when a player loads, as in joins, a map?

avatar image Alwaysusa Jun 14 '17 at 10:14 PM

I'm looking for a solution to this too. Is there an equivalent to OnPostLogin that fires when a player has loaded the map after joining a session?

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

Inside the GameMode and GameModeBase there is a 'HandleSeamlessTravelPlayer' method, which is called for the player that finished loading, but it's not accessible from blueprints... You can implement 'HandleStartingNewPlayer' event that called inside 'HandleSeamlessTravelPlayer', but this method is also called inside 'PostLogin', so you should determine somehow by yourself these situations if you need it.

more ▼

answered Jan 13 '19 at 02:10 PM

avatar image

60 1 4 9

(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