Sandbox Logo

class AuthorityAttribute : System.Attribute

Summary

Marks a method as being an RPC specifically targeted to the owner of the <see cref="T:Sandbox.GameObject" />, or the host if the <see cref="T:Sandbox.GameObject" /> doesn't have an owner. <br /><br /> The state of the object the RPC is called on will be up-to-date including its <see cref="T:Sandbox.GameTransform" /> and any properties with the <see cref="T:Sandbox.SyncAttribute" /> or <see cref="T:Sandbox.HostSyncAttribute" /> attributes by the time the method is called on remote clients. The only except is any synchronized properties marked with <see cref="P:Sandbox.SyncAttribute.Query" /> which will generally only be received every network tick.

User Comments