Sandbox Logo

class BroadcastAttribute : System.Attribute

Summary

Marks a method as being an RPC that when invoked will be called for all connected clients including the host. You can filter who receives the RPC by calling the RPC within the scope of <see cref="M:Sandbox.Rpc.FilterInclude(System.Collections.Generic.IEnumerable{Sandbox.Connection})" /> or <see cref="M:Sandbox.Rpc.FilterExclude(System.Collections.Generic.IEnumerable{Sandbox.Connection})" />. <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