Skip to content

OnOvenToggle

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnOvenToggle( BaseOven instance, BasePlayer player )
{
    Puts( "OnOvenToggle works!" );
}

Location

  • BaseOven::SVSwitch(BaseEntity/RPCMessage msg)
csharp
[BaseEntity.RPC_Server, BaseEntity.RPC_Server.MaxDistance(3f)]
protected virtual void SVSwitch(BaseEntity.RPCMessage msg)
{
	bool flag = msg.read.Bit();
	if (Interface.CallHook("OnOvenToggle", this, msg.player) != null)
	{
		return;
	}
	if (flag == base.IsOn())
	{
//---

Released under the MIT License.