Sign In Register

How can we help you today?

Start a new topic
Answered

Match based on player type

Hi,


Let's say I have two types of players (based on value in player scriptData) and I only want to match against players of the same type. How can I do this?


I tried setting the skill of one player to 0 and the skill of the other player to 1 in the MatchMakingRequest to identify the different player types, but none of the match making options (absolute, relative, url) work like this.


Thanks,

Jeffry


Best Answer

Hi Jeffry


You could use the matchGroup parameter of the matchmaking request. When you do this, you will only be matched to players with the same group.


https://docs.gamesparks.net/documentation/request-api/multiplayer-request-api/matchmakingrequest


If you don't care about scores, you could always send 1 as the skill, so you are only matching based on your group.


Hope that helps !


Gabriel


Thanks, that would be helpful!

Thanks, that would be helpful!

Hi Jeffry


I don't think this is something we can do with the current API, but I've passed this to the engineering team and put it on the backlog as it seems like a reasonable feature to implement


Gabriel

Any comment? Is this possible at all?

Ok thanks! But now the other way around, what if I only want to match with the other player type, e.g. boys versus girls?

Answer

Hi Jeffry


You could use the matchGroup parameter of the matchmaking request. When you do this, you will only be matched to players with the same group.


https://docs.gamesparks.net/documentation/request-api/multiplayer-request-api/matchmakingrequest


If you don't care about scores, you could always send 1 as the skill, so you are only matching based on your group.


Hope that helps !


Gabriel

Login to post a comment