Skip to content

OnOvenStart

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnOvenStart( BaseOven instance )
{
    Puts( "OnOvenStart works!" );
    return null;
}

Location

  • BaseOven::StartCooking()
csharp
public virtual void StartCooking()
{
	if (Interface.CallHook("OnOvenStart", this) == null && (FindBurnable() != null || CanRunWithNoFuel))
	{
		base.inventory.temperature = cookingTemperature;
		UpdateAttachmentTemperature();
		cookQueue.Add(this);
		lastCookUpdate = 0f;
//---

Released under the MIT License.