- Home /
Question by
NKRdev · Nov 21, 2013 at 12:55 AM ·
networkingmultiplayercharacternetworkrpc
Multiplayer - Selected character to Network.guid?
I need to create a script that takes the selected character, at the character selection menu in a multiplayer, and link it to the Network.GUID. So that, for example, when a player sends an RPC to chat that it'll know his character's name and from which server it was sent from.
Something like :
[RPC]
void rpc(NetworkMessageInfo info) {
string username = SelectedChar[info.guid];
}
//client
void SendRPC(){
networkview.RPC("rpc", RPCMode.Server, "text that the person sends");
}
Comment
Your answer
Follow this Question
Related Questions
RPC Call doesnt get called 2 Answers
How To Deal With Lingering Prefabs in Multiplayer Scene ? 0 Answers
Testing my multiplayer character offline 0 Answers
How to use an RPC to send an animation over the network? 2 Answers
Multiplayer issue - players view others as themselves with same material 1 Answer