CanTakeCutting
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanTakeCutting( BasePlayer player, GrowableEntity instance )
{
Puts( "CanTakeCutting works!" );
}
Location
- GrowableEntity::TakeClones(BasePlayer player)
csharp
//---
}
if (!this.CanClone())
{
return;
}
if (Interface.CallHook("CanTakeCutting", player, this) != null)
{
return;
}
int num = this.Properties.BaseCloneCount + this.Genes.GetGeneTypeCount(GrowableGenetics.GeneType.Yield) / 2;
if (num <= 0)
//---