Skip to content

OnDieselEngineToggled

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnDieselEngineToggled( DieselEngine instance )
{
    Puts( "OnDieselEngineToggled works!" );
}

Location

  • DieselEngine::EngineOff()
  • DieselEngine::EngineOn()
csharp
public void EngineOff()
{
	base.SetFlag(BaseEntity.Flags.On, false, false, true);
	base.BroadcastEntityMessage("DieselEngineOff", 20f, 1218652417);
	Interface.CallHook("OnDieselEngineToggled", this);
}
csharp
public void EngineOn()
{
	base.SetFlag(BaseEntity.Flags.On, true, false, true);
	base.BroadcastEntityMessage("DieselEngineOn", 20f, 1218652417);
	Interface.CallHook("OnDieselEngineToggled", this);
}

Released under the MIT License.