Перейти к содержанию

GetVehicleEngineHealth

Материал из RAGE MP Wiki Archive
Версия от 17:09, 12 декабря 2019; imported>Avoid (Created page with "Returns the vehicle's livery. Engine health is not the same as vehicle health. {{CSharpContainer| {{#tag:pre|float {{Template:CSharp_Serverside_namespace}}Vehicle.GetVehicleE...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Returns the vehicle's livery. Engine health is not the same as vehicle health.


float NAPI.Vehicle.GetVehicleEngineHealth(Vehicle vehicle);

Parameters

  • vehicle: parameter input should be in Vehicle type

NOTE: This function returns the engine health in float type.

Example

<syntaxhighlight lang="csharp"> float engineHealth = NAPI.Vehicle.GetVehicleEngineHealth(vehicle); </syntaxhighlight>