Skip to content

OnDigitalClockRing

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnDigitalClockRing( DigitalClock instance )
{
    Puts( "OnDigitalClockRing works!" );
    return null;
}

Location

  • DigitalClock::Ring()
csharp
private void Ring()
{
	if (Interface.CallHook("OnDigitalClockRing", this) == null)
	{
		isRinging = true;
		ClientRPC(RpcTarget.NetworkGroup("RPC_StartRinging"));
		Invoke(StopRinging, 5f);
		MarkDirty();
//---

Released under the MIT License.