When i try to call a ServerRPC to update the clients position it gives me an error saying “Client Trying to call a ServerRPC that requires ownership” Please Help:
Code:
Player: GDL Space - A Space for GDL code.
Manager: GDL Space - A Space for GDL code.
Hi, I don’t know if you managed to solve it but in case you are trying to call an RPC that requires ownership from a NetworkObject that is not owned by you, you need to add (RequireOwnership = false) on the method mark.
Instead of [ServerRpc], use [ServerRpc(RequireOwnership = false)] on the line before the method.
Thanks!! I was looking for this answer. If anyone is still paying attention, I don’t see this mentioned anywhere in the documentation, how did you know the answer?
Can you link the documentation you are using?