Skip to content

OnQuarryGather

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnQuarryGather(  )
{
    Puts( "OnQuarryGather works!" );
}

Location

  • MiningQuarry::ProcessResources()
csharp
//---
		if (num2 != num3)
		{
			int iAmount = num3 - num2;
			Item item = ItemManager.Create(resource.type, iAmount, 0uL);
			Facepunch.Rust.Analytics.Azure.OnQuarryItem(Facepunch.Rust.Analytics.Azure.ResourceMode.Produced, item.info.shortname, item.amount, this);
			if (Interface.CallHook("OnQuarryGather", this, item) != null)
			{
				item.Remove();
			}
			else if (!item.MoveToContainer(hopperPrefab.instance.GetComponent<StorageContainer>().inventory))
			{
//---

Released under the MIT License.