Error : Local simulation is not allowed to send this RPC
Options
What does this error mean? I want to send rps to the server and this error occurs and the server does not receive rpc
// My Send rpc code : public void Fire(Camera camera) { RPC_ServerRaycast(camera.position,camera.forward); } [Rpc(RpcSource.InputAuthority,RpcTargets.StateAuthority)] private void RPC_ServerRaycast(Vector3 positon, Vector3 forward) { // My racast code here ... }
If i change to [Rpc] atribute without any condition all work ok.
0
Answers
-
I am not really sure what could be the problem 😶
Are you sure that your client has Input Authority over the source ?
0 -
[Rpc(RpcSource.InputAuthority,RpcTargets.StateAuthority)]
this should be
RpcSources.InputAuthority
, you forgot the "s" :)0