- Home /
Question by
Dissolver84 · Jun 18, 2012 at 01:39 PM ·
instantiatemultiplayerplayer
Multiplayer player spawn help
I'm trying to create a script where different players will spawn with different prefab as they join/connect a game. So when the first player join the match, it spawns 1st player prefab, when a second player joins, 2nd player prefab spawns etc. Help please?
Comment
Which part do you need help with ? Choosing the correct prefab or instantiating it ? The multiplayer side ?
Choosing the correct prefab to Instantiate when certain player connects to server.
Answer by Berenger · Jun 20, 2012 at 12:47 AM
Create a script with a list of GameObject. Each player will instantiate the last (or first) and you can then remove it from the list.
Your answer
![](https://koobas.hobune.stream/wayback/20220613072934im_/https://answers.unity.com/themes/thub/images/avi.jpg)