I’m not sure if there is a way to do this or not but so far I haven’t been able to find one.
I want to be able to abandon a match. As in a match has been created but it has not yet been started. I want to be able to delete that match. Is there a way to do this?
There are two use cases for this:
A player starts a new game and is waiting for an opponent to join, decides they no longer want to play and wants to delete their game in the waiting list. (I can understand why this may be an issue and is of less importance than the next use case).
A game is created and has two players in it and is ‘READY’ to play. But one player doesn’t want to play so they want to abandon the match, effectively completing it but without a result.
The reason I want to be able to do case 2) is if player1 challenges player2 to a rematch. A match is created with both players in it and it’s set to ‘READY’ but then player2 decides to decline the rematch.
Do you recommend a better way to accomplish this?
Also an extra note: UpdateMatch could be used for this but currently does not let you complete a match when in the ready state so I can’t use that. But in practice UpdateMatch doesn’t actually work at all because you cannot set the Completed flag as it’s a privately set property which is a bug i think. Edit: this is only a problem on the client, in cloud script it works as expected.