How can I get a PhotonNetwork.playerList in joining order?
Options
Hi, I'm creating a 4 players game, with rounds to pass a gun. There's only one gun (in a room) and it starts with only 1 player, after 10 seconds it passes to the second player in sequence and after another 10 seconds it passes to the third player...etc.
I created a script that takes the PhotonNetwork.playerList and work with it as the joining order, but I figured out that it's random, meaning it's random for all players, so when the script runs, the gun is with a different player in each running game.
Can anyone help me with this issue ?
I think if I can have the same playerList for all players it wouldn't be a problem but I have no idea of how to achieve that.
Thanks in advance
I created a script that takes the PhotonNetwork.playerList and work with it as the joining order, but I figured out that it's random, meaning it's random for all players, so when the script runs, the gun is with a different player in each running game.
Can anyone help me with this issue ?
I think if I can have the same playerList for all players it wouldn't be a problem but I have no idea of how to achieve that.
Thanks in advance
0