Sending RPC to everyone except one specific player

I would like server to broadcast some message from one client between other clients, without the original client sender receiving again.
I know i could just simply loop through all connected and skip the sender, but i also know that RakNet has this feature (sending to everyone except one) and that it would be probably more effective.

To be honest this is a stupid question, that could be answered by just taking a look at the Unity Docs, but nevertheless here is the answer :slight_smile:

networkView.RPC("MyFunction", RPCMode.Others, myvariable);


The RPCMode allows you to regulate  who receives the RPC. This includes only the server, everyone, and everyone except the sender. Some of these can also be buffered.
More info here; http://docs.unity3d.com/Documentation/ScriptReference/RPCMode.html
And here: http://docs.unity3d.com/Documentation/Components/net-RPCDetails.html

Hope this helps :D