Stop MasterClient Control disconnected players
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
-
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 thePhotonNetwork.LocalPlayer.ActorNumber
. If it doesn't, don't apply input...0
Answers
-
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 thePhotonNetwork.LocalPlayer.ActorNumber
. If it doesn't, don't apply input...0