Skip to content

OnEngineStopped

Usage

  • No return behavior

Example Autogenerated

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

Location

  • VehicleEngineController::StopEngine()
csharp
//---
		using (BaseEntity.FlagsUpdateScope flagsUpdateScope = owner.StartSetFlags(BaseEntity.FlagsUpdateMode.SendNetworkUpdate))
		{
			flagsUpdateScope.Set(BaseEntity.Flags.On, b: false);
			flagsUpdateScope.Set(engineStartingFlag, b: false);
		}
		Interface.CallHook("OnEngineStopped", ((VehicleEngineController<BaseMountable>)(object)this).owner);
	}
}

Released under the MIT License.