Skip to content

OnOvenCook

Usage

  • Return a non-null value or bool to override default behavior

Example Autogenerated

csharp
private void OnOvenCook( BaseOven instance, Item item )
{
    Puts( "OnOvenCook works!" );
}

Location

  • BaseOven::Cook()
csharp
//---
	if (base.HasFlag(BaseEntity.Flags.Reserved8))
	{
		return;
	}
	Item item = this.FindBurnable();
	if (Interface.CallHook("OnOvenCook", this, item) != null)
	{
		return;
	}
	if (item == null && !this.CanRunWithNoFuel)
	{
//---

Released under the MIT License.