|
I am using the M2H tutorial for my multiplayer networked game. Currently I have name labels for each of the players using 3dtext ad networkview and networkrigidbody attached. I also attached a script to the 3d text that sets the value of the text to the name of the player. The code looks like this:
When only two players are logged in (the server and 1 client). Everything works good, the names show up properly. However, when 3 or more are logged in there are problems. The server looks good, all players are labeled correctly, however, on each client all the ships have the servers name. I need all the clients to have all the correct names for the other players' ships. Thank you.
(comments are locked)
|
|
Use I've tried getting the name with PlayerPrefs.GetString("playerName"), but that just sets all the opposing players labels to the name of the localplayer. Is there a way to access the PlayerPrefs of the other players?
Jun 22 '10 at 08:05 PM
mlkielb 1
I've been going over Leepo's tutorial more and more and finally got it to work the way I needed it to.
Jun 25 '10 at 01:37 AM
mlkielb 1
(comments are locked)
|
|
I've tried getting the name with PlayerPrefs.GetString("playerName"), but that just sets all the opposing players labels to the name of the localplayer. Is there a way to access the PlayerPrefs of the other players? When restating a question please use the comment button
Jun 22 '10 at 07:54 PM
Pirate___man
Again, everything is showed there, as u can see all the names are stored in the Scoreboard with OTHER names - which is exactly like the 3D Text.
Jun 22 '10 at 08:05 PM
AnaRhisT
(comments are locked)
|
