Search Unity

React on wrong password at JoinMatch

Discussion in 'Multiplayer' started by pKallv, Jul 25, 2017.

  1. pKallv

    pKallv

    Joined:
    Mar 2, 2014
    Posts:
    1,191
    I have the following code for join match:

    Code (CSharp):
    1. networkManager.matchMaker.JoinMatch (theMatch.networkId, password, "", "", 0, 0, networkManager.OnMatchJoined);
    I can check and react if the player does not type in a password but is there anyway possible to track, and react, if the user type in the wrong password?

    Currently when a user type in wrong password nothing happens.
     
  2. TwoTen

    TwoTen

    Joined:
    May 25, 2016
    Posts:
    1,168
    I don't know if anything is built it. If not (Which I don't think it is). You can change the connect flow to this:
    They connect, They send their password to the server
    Server verifies if it's correct. If it is, create their player object.
    If not. Disconnect them

    That's what our title does. But instead of passwords. We send Steam Tickets and Matchmaking tickets.