Skip to content

OnGrowableGather

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnGrowableGather( GrowableEntity instance, BasePlayer player, bool eat )
{
    Puts( "OnGrowableGather works!" );
    return null;
}

Location

  • GrowableEntity::PickFruit(BasePlayer player, bool eat)
csharp
public void PickFruit(BasePlayer player, bool eat = false)
{
	if (!CanPick(player) || Interface.CallHook("OnGrowableGather", this, player, eat) != null)
	{
		return;
	}
	harvests++;
	GiveFruit(player, CurrentPickAmount, eat);
//---

Released under the MIT License.