Stop MasterClient Control disconnected players

Options

So as the title , when Player is Dc/leaves in middle of game.

the masterclient can control this players. is there any way to stop that for happning? so the master will only control himself?

Best Answer

  • Tobias
    Tobias admin
    Answer ✓
    Options

    This is what I recommended on Discord:

    I guess you simply need to change the scripts that handle local input to only work on characters which are created by the local player.

    Aside from checking IsMine, your scripts may also check if the PhotonView.CreatorActorNr equals the PhotonNetwork.LocalPlayer.ActorNumber. If it doesn't, don't apply input...

Answers

  • Tobias
    Tobias admin
    Answer ✓
    Options

    This is what I recommended on Discord:

    I guess you simply need to change the scripts that handle local input to only work on characters which are created by the local player.

    Aside from checking IsMine, your scripts may also check if the PhotonView.CreatorActorNr equals the PhotonNetwork.LocalPlayer.ActorNumber. If it doesn't, don't apply input...