Error : Local simulation is not allowed to send this RPC

Options
Qmaks
Qmaks ✭✭
edited January 2022 in Fusion

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.

Answers

  • FergalM
    Options

    I am not really sure what could be the problem 😶

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

  • squirrel
    Options
    [Rpc(RpcSource.InputAuthority,RpcTargets.StateAuthority)]
    

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