- Home /
Question by
Siccity · Mar 05, 2014 at 10:45 PM ·
networkingmultiplayerserverrpcnetworkview
Is server the sender of RPC?
I need to perform a check to see if the RPC has been sent by the server itself. Never trust s client y'know.
Normally to test the RPC sender against a player i'd do this:
[RPC]
public void DisablePhysics(NetworkMessageInfo info) {
if (info.sender == networkView.owner) RigidbodyConstraints.FreezeAll;
}
But how do I test to see if the sender is the server? Passing a bool won't do as any client would be able to do so as well.
Comment
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
How can I send a mouse click to a server using an RPC? 0 Answers
networkView not called on Child objects? 0 Answers
Networking: RPC To Specific Player? 1 Answer
Custom dedicated server application 3 Answers