Skip to main content
Version: 5.7.0

SysCreateLobby

Creates an instance of a lobby. Will return the newly created lobby id in the event of a successful creation.

ServiceOperation
lobbySYS_CREATE_LOBBY

Method Parameters

ParameterDescription
ownerCxIdThe cx of the lobby instance owner.
lobbyTypeThe type of lobby to look for. Lobby types are defined in the portal.
ratingThe skill rating to use for finding the lobby. Provided as a separate parameter because it may not exactly match the user's rating (especially in cases where parties are involved).
otherUserCxIdsArray of other users (i.e. party members) to add to the lobby as well. Will constrain things so that only lobbies with room for all players will be considered.
settingsOwner settings for this lobby.
isReadyInitial ready-status of this user.
extraJsonInitial extra-data about this user.
teamCodePreferred team for this user, if applicable. Send "" or null for automatic assignment.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"lobbyId": "24797:CursorPartyV2:5"
},
"status": 200
}