GetVehicleEngineHealth

From RAGE Multiplayer Wiki
Revision as of 17:09, 12 December 2019 by Avoid (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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


C# Syntax

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

float engineHealth = NAPI.Vehicle.GetVehicleEngineHealth(vehicle);