Skip to content

OnEngineStopped

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnEngineStopped(  )
{
    Puts( "OnEngineStopped works!" );
}

Location

  • VehicleEngineController::StopEngine()
csharp
//---
	if (isServer && !IsOff && Interface.CallHook("OnEngineStop", ((VehicleEngineController<BaseMountable>)(object)this).owner) == null)
	{
		CancelEngineStart();
		owner.SetFlag(BaseEntity.Flags.On, b: false);
		owner.SetFlag(engineStartingFlag, b: false);
		Interface.CallHook("OnEngineStopped", ((VehicleEngineController<BaseMountable>)(object)this).owner);
	}
}

Released under the MIT License.