#RPCs are not being called
1 messages · Page 1 of 1 (latest)
We are going to need more info. How is it being called? Where is this script located? That code snippet should work fine. It needs to be on a network object and spawned in the scene.
Yeah - I realized it was because Clients cannot by default call ServerRpc's unless "Require Ownership" is set to false. I guess I wonder, why would you ever have a ServerRpc that could only be called by the server? You're already in a server context, you should be able to call normal functions rather than RPC's.
Well, not quite. By default ServerRPCs can only be called by whoever owns the object they are on. Normally ServerRPCs are on client owned objects like the Player. Things like Managers are usually owned by the server so they need the Required Ownership to be false