Leaving Matches
Last updated
Last updated
You can leave a match at any time by using the LeaveKronosMatch
node. The player will disconnect from the game and the session will be cleaned up automatically. If called on the hosting player, all clients will be gracefully disconnected before closing the game.
There is no hard requirement on where you need to call this from. Most games will probably have this hooked to the OnClicked
event of a widget button.
The OnComplete
event is called when the leave has been requested so at that time the player is still in the match (disconnecting in the next frame).