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

GetVehicleHealth

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

Returns the vehicle's health.


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

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