Sending Match Invites
Last updated
Last updated
In order to access online features, the player must be logged in with the Online Subsystem. Please visit the Authentication page for more information.
There are two ways to invite players into a match.
This invite method uses the online platform's own invite UI (e.g. Steam Overlay) to send party invites. Simply use the ShowGameInviteUI
to make the external invite UI appear. This is the easiest, most convenient way of handling invites because this way you do not have to set up your own widgets and query friends list. When the user accepts the invite, they will join the game automatically.
You can also use the SendGameInviteToFriend
function in KronosStatics
. This function requires the unique id of the friend you want to invite. You can get a list of online friends via the ReadUserFriendsList
node.
NOTE: The Steam Online Subsystem does not have the necessary callbacks registered for when an invite is received which means that an in-game "invite received" popup cannot be implemented currently. The invite must be accepted through the Steam Overlay.