Error
The whole answer can be found below.
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).
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
I am not really sure what could be the problem 😶
Are you sure that your client has Input Authority over the source ?
[Rpc(RpcSource.InputAuthority,RpcTargets.StateAuthority)]
this should be RpcSources.InputAuthority
, you forgot the "s" :)