Skip to content

OnGrowableStateChange

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnGrowableStateChange( GrowableEntity instance, PlantProperties.State state )
{
    Puts( "OnGrowableStateChange works!" );
    return null;
}

Location

  • GrowableEntity::ChangeState(PlantProperties.State state, bool resetAge, bool loading)
csharp
public void ChangeState(PlantProperties.State state, bool resetAge, bool loading = false)
{
	if (Interface.CallHook("OnGrowableStateChange", this, state) != null || (base.isServer && State == state))
	{
		return;
	}
	State = state;
	if (!base.isServer)
//---

Released under the MIT License.