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"

How do I organize multiple sessions happening at once?

I'm trying to make a simple 1v1 dual game, and I want to know how I would organize multiple games going on at once. Is there some blueprint type that is assigned to each game or session, like a Session Blueprint, or should I do everything in the level blueprint. I didn't think of this while making my game in the beginning and did a lot of stuff in the Game Instance, but that is replicated to all clients playing no matter what game they are in, right? For instance, I would like a function that would return all players connected to a session, do something with them, and all without messing with any of the other running 1v1's.

Thanks for your help.

Product Version: UE 4.20
more ▼

asked Aug 27 '18 at 07:13 PM in Blueprint Scripting

avatar image

6 1 2 6

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

1 answer: sort voted first


the Find Session node returns an array of all the sessions found, with this info you can then create a list on the hud displaying the information of each one and let the player choose which one to connect to

more ▼

answered Aug 27 '18 at 07:15 PM

avatar image

73 3 8 16

avatar image EvilTeliportist Aug 27 '18 at 07:30 PM

Yes, I understand that I can get the session from there. But is there a space where I can store session specific information? People say that the game state controls the state of the game, the "scores of the teams" and so on. Is there an instance of the game state for each session? Because I could use that to control session specific information.

avatar image Nico_Pucho_27 Aug 27 '18 at 07:32 PM

i honestly don't know, but you can try displaying the info of the game state and then setting a new value, create a new session and then see if it displays the previously set value

(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