#Can't invoke server RPC from a non-owner?

1 messages · Page 1 of 1 (latest)

ashen crystal
#

I know this question is quite vague, but I have this above my RPC

[ServerRpc(InvokePermission = RpcInvokePermission.Everyone)]

and then when trying to invoke the RPC from a non-owner... I get this error? (Using NGO).

Only the owner can invoke a ServerRpc that requires ownership!

I understand the question is a bit vague just wanted to know if im being stupid and missed something. RpcInvokePermission has 3 values - Server, Owner and Everyone. I used to use

[ServerRpc(requireOwnership = false]

but after updating NGO I found out this was deprecated. Can someone help me find out what i'm doing wrong here?

tired steeple
#

You'll still need to use SendTo.Server

#

Oh and it's [Rpc(SendTo.Server, RpcInvokePermission.Everyone)]

ashen crystal
tired steeple