Skip to content

OnGrowableGathered

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnGrowableGathered( GrowableEntity instance, Item item, BasePlayer player )
{
    Puts( "OnGrowableGathered works!" );
}

Location

  • GrowableEntity::GiveFruit(BasePlayer player, int amount, bool applyCondition, bool eat)
csharp
//---
			return;
		}
	}
	if (player != null)
	{
		Interface.CallHook("OnGrowableGathered", this, item, player);
		Facepunch.Rust.Analytics.Azure.OnGatherItem(item.info.shortname, item.amount, this, player);
		player.GiveItem(item, GiveItemReason.ResourceHarvested, GiveItemOptions.BackpackOverflow);
	}
	else
	{
//---

Released under the MIT License.