Skip to main content
Blueprint Tutorials

Tutorial 2: Host a lobby

The host creates a lobby that other players can find and join. The lobby carries attributes, typed key/value pairs that searches can filter on.

CreateCrossplayLobby graph

The graph​

  1. Make Crossplay Attribute (String) and Make Crossplay Attribute (Integer) create two typed values: the game mode "deathmatch" and the skill 1500.

  2. Make Map puts them under the keys mode and skill.

  3. Make Crossplay Lobby Settings describes the lobby:

    PinValueDescription
    Max Members41 to 64 players.
    VisibilityPublicPublic lobbies are found by searches.
    BucketdefaultSearches only find lobbies in the same bucket.
    AttributesThe mapSearchable lobby attributes.
    Voice ChattrueMembers join the lobby's voice chat.
  4. CreateCrossplayLobby creates the lobby and makes the player its owner. On Success gives the new Lobby. Its Lobby Id is printed here.

The player must be logged in (Tutorial 1) and must not already be in a lobby. Otherwise On Failure fires with Not Logged In or Invalid Parameters.

tip

The type of an attribute matters. A lobby that stores skill as an Integer is only found by an Integer filter on skill. See Attributes.

Things to try​

  • Use the Bucket for things that must never mix, such as the build version or region.
  • Change Visibility to Invite Only and invite players instead (Invites).
  • Change attributes later with SetCrossplayLobbyAttributes, for example the current map.

Next: Find and join a lobby