GetVehicleHealth

From RAGE Multiplayer Wiki
Revision as of 16:59, 12 December 2019 by Avoid (talk | contribs) (Created page with "Returns the vehicle's health. {{CSharpContainer| {{#tag:pre|float {{Template:CSharp_Serverside_namespace}}Vehicle.GetVehicleHealth(Vehicle vehicle);}} {{Parameters}} *'''vehi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns the vehicle's health.


C# Syntax

float NAPI.Vehicle.GetVehicleHealth(Vehicle vehicle);

Parameters

  • vehicle: parameter input should be in Vehicle type

NOTE: This function returns the health in float type.

Example

float vehicleHealth = NAPI.Vehicle.GetVehicleHealth(vehicle);