Skip to content

OnEntityFlagsNetworkUpdate

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnEntityFlagsNetworkUpdate( BaseEntity instance )
{
    Puts( "OnEntityFlagsNetworkUpdate works!" );
    return null;
}

Location

  • BaseEntity::SendNetworkUpdate_Flags()
csharp
//---
		return;
	}
	using (TimeWarning.New("SendNetworkUpdate_Flags"))
	{
		LogEntry(RustLog.EntryType.Network, 3, "SendNetworkUpdate_Flags");
		if (Interface.CallHook("OnEntityFlagsNetworkUpdate", this) == null)
		{
			List<Connection> subscribers = GetSubscribers();
			if (subscribers != null && subscribers.Count > 0)
			{
				NetWrite netWrite = Net.sv.StartWrite();
//---

Released under the MIT License.