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(current.type, iAmount, 0uL, true);
				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(0f);
				}
				else if (!item.MoveToContainer(this.hopperPrefab.instance.GetComponent<StorageContainer>().inventory, -1, true, false, null, true))
				{
//---

Released under the MIT License.