Skip to content

OnExcavatorMiningToggled

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnExcavatorMiningToggled( ExcavatorArm instance )
{
    Puts( "OnExcavatorMiningToggled works!" );
}

Location

  • ExcavatorArm::BeginMining()
  • ExcavatorArm::StopMining()
csharp
//---
		}
		this.nextNotificationTime = Time.time + 60f;
	}
	ExcavatorServerEffects.SetMining(true, false);
	this.excavatorStartTime = this.GetNetworkTime();
	Interface.CallHook("OnExcavatorMiningToggled", this);
}
csharp
public void StopMining()
{
	ExcavatorServerEffects.SetMining(false, false);
	base.CancelInvoke(new Action(this.ProduceResources));
	base.SetFlag(BaseEntity.Flags.On, false, false, true);
	Interface.CallHook("OnExcavatorMiningToggled", this);
}

Released under the MIT License.