|
Hello! I try to make a simple Multiplayer FPS Game with up to 6 Players. I have a simple spawner but I want to have a spawner which spawns players with different colours.(So 6 different colours) Here is my spawner Should I add 6 different player prefabs to the project? If yes, how do I let them spawn in a row, if the first player connects the (blue) player 1 spawns? Can somebody help me out?
(comments are locked)
|
|
You could probably use Network.connections.length with the 6 prefabs. It would be something like this I think: Maybe you don't even need to make 6 prefab. Maybe you can change between different materials/textures. I hope my answer gives you an idea. Yes thats an good idea, but isn't i a fault to have more than one CreatePlayer?
Jun 02 '12 at 06:25 PM
potu1304
what do you mean? CreatePlayer(...) gets only called ones per player who connects to the server. Do you know how switch-case works?
Jun 02 '12 at 06:47 PM
ExTheSea
Oh and what do you mean with PlPref?
Jun 02 '12 at 06:52 PM
potu1304
I mean need to change your CreatePlayer to something like: CreatePlayer(GameObject PlPref) PlPref is just a variable in this case so you can access the different prefabs when you instantiate the player. Do you understand what i want to say?
Jun 02 '12 at 07:42 PM
ExTheSea
(comments are locked)
|
