Error

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Fusion.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Error : Local simulation is not allowed to send this RPC

Qmaks
2022-01-21 13:47:23

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.

Comments

FergalM
2022-01-21 18:35:32

I am not really sure what could be the problem 😶

Are you sure that your client has Input Authority over the source ?

squirrel
2022-01-23 01:11:29

[Rpc(RpcSource.InputAuthority,RpcTargets.StateAuthority)]    

this should be RpcSources.InputAuthority , you forgot the "s" :)

Back to top