- Home /
Among Us Clone
Hello there. I am trying to make an Among Us clone and I need help with the impostor selection. My game is multiplayer using the Photon Engine. I basically just need help with a script that can handle the impostor selection. Each game has 10 players in it and the game will select a random player out of those ten to be the impostor. I figured if I can just put all the players inside a list and use a random.range function to choose a random number from 1 to 2. If you get a 1, you are innocent and 2 meaning you are the impostor. So how do you do this?
this won't work very well since this can mean there's a slight cahnce of the game having even 10 impostors.....i think you should put all the players in list and generate a random number from 1 to 10....which decides who is the impostor.....it can easily be expanded to work with 2 or even three impostors....as for how to implement it....i think you should wait for a more educated answer since i've never used Photon...so im sorry i can't help you with the main problem