Skip to content

OnRfListenerRemove

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnRfListenerRemove( IRFObject obj, int frequency )
{
    Puts( "OnRfListenerRemove works!" );
    return null;
}

Location

  • RFManager::RemoveListener(int frequency, IRFObject obj)
csharp
public static void RemoveListener(int frequency, IRFObject obj)
{
	frequency = ClampFrequency(frequency);
	if (Interface.CallHook("OnRfListenerRemove", obj, frequency) == null && GetListenerSet(frequency).Remove(obj))
	{
		obj.RFSignalUpdate(on: false);
		Interface.CallHook("OnRfListenerRemoved", obj, frequency);
	}
}

Released under the MIT License.