OnGrowableStateChange
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnGrowableStateChange( GrowableEntity instance, State state )
{
Puts( "OnGrowableStateChange works!" );
}
Location
- GrowableEntity::ChangeState(PlantProperties/State state, bool resetAge, bool loading)
csharp
private void ChangeState(PlantProperties.State state, bool resetAge, bool loading = false)
{
if (Interface.CallHook("OnGrowableStateChange", this, state) != null)
{
return;
}
if (base.isServer && this.State == state)
{
//---