OnGrowableGather
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnGrowableGather( GrowableEntity instance, BasePlayer player, bool eat )
{
Puts( "OnGrowableGather works!" );
}
Location
- GrowableEntity::PickFruit(BasePlayer player, bool eat)
csharp
//---
{
if (!this.CanPick())
{
return;
}
if (Interface.CallHook("OnGrowableGather", this, player, eat) != null)
{
return;
}
this.harvests++;
this.GiveFruit(player, this.CurrentPickAmount, eat);
//---