Skip to main content

GetVehicleHealth

Returns the vehicle's health.

C#​

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);