Skip to content

OnRfBroadcasterAdd

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnRfBroadcasterAdd( IRFObject obj, int frequency )
{
    Puts( "OnRfBroadcasterAdd works!" );
}

Location

  • RFManager::AddBroadcaster(int frequency, IRFObject obj)
csharp
public static void AddBroadcaster(int frequency, IRFObject obj)
{
	frequency = RFManager.ClampFrequency(frequency);
	if (Interface.CallHook("OnRfBroadcasterAdd", obj, frequency) != null)
	{
		return;
	}
	List<IRFObject> broadcasterList = RFManager.GetBroadcasterList(frequency);
	if (broadcasterList.Contains(obj))
//---

Released under the MIT License.