Hello!
I’m currently implementing “Ownable” entities.
Now I’d really like to utilize AssignClientAuthority/RemoveClientAuthority for this.
These work with a clients NetworkConnection. I plug the localplayers clientAuthorityOwner into this.
So I am trying to call AssignClientAuthority(LocalPlayer.networkIdentity.clientAuthorityOwner) on an Ownable. This works well on the Host.
However it fails on the other clients because the clientAuthorityOwner is null on their respective Playerobject.
The Documentation reads “clientAuthorityOwner: The client that has authority for this object. This will be null if no client has authority.”
What am I missing? Or is this a bug?
Edit: Is calling AssignClientAuthority required to be within a [Command]?