question

Sultan Sultanov avatar image
Sultan Sultanov asked

Matchmaking | Is Player In Match

Hello. How can I check if a player has active matches? For example, if a player is kicked off the server so that he can check if he has active matches and reconnect to them

Matchmaking
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

The “Match” in the PlayFab is stateless. There are no concepts such as “active match”, “inactive match”. You need to achieve the states of the match programmatically on your own. For example, you can define a K/V pair in Player Read-only Data to store the match the player hasn’t completed. You can write the MatchId at the beginning of the match and remove it at the end of the match. If so, players can retrieve the states of the match via API GetUserReadOnlyData.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.