Skip to content

OnEngineStop

Usage

  • No return behavior

Example Autogenerated

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

Location

  • VehicleEngineController::StopEngine()
csharp
public void StopEngine()
{
	if (isServer && !IsOff && Interface.CallHook("OnEngineStop", ((VehicleEngineController<BaseMountable>)(object)this).owner) == null)
	{
		CancelEngineStart();
		using (BaseEntity.FlagsUpdateScope flagsUpdateScope = owner.StartSetFlags(BaseEntity.FlagsUpdateMode.SendNetworkUpdate))
		{
			flagsUpdateScope.Set(BaseEntity.Flags.On, b: false);
//---

Released under the MIT License.