- Home /
Question by
SavvaMadar · May 23, 2014 at 11:18 PM ·
networkingnetworkrpc
RPC setName() not working correctly
I have a function called RPC setName()
basically as soon as a player spawns I call
gameObject.GetComponent(NetworkView).RPC("setName",RPCMode.OthersBuffered,PlayerPrefs.GetString("stringyName"));
What happens is that when there are two players connected everything is fine. I see other players name, other player sees my name when aiming at me. Once a 3rd players joins everything goes to hell and all our names are messed up for the 3rd player.
here is the function itself:
@RPC
function setName(temp:String){
myName=temp;
}
Comment
Your answer
Follow this Question
Related Questions
Set unity process as server and client? 0 Answers
supplied parameters doesn't match the rpc declaration 1 Answer
Unity networking,Cant see each other move 2 Answers
RPC call ending up on wrong target 1 Answer
modernized master server script? 1 Answer