SetVehicleEngineHealth

From RAGE Multiplayer Wiki
Revision as of 22:02, 27 November 2019 by Avoid (talk | contribs) (Created page with "Sets how much health the vehicle engine has. Note that if you are trying to use this to cripple a vehicle, the health will start to decrease quickly and ultimately explode. K...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Sets how much health the vehicle engine has.

Note that if you are trying to use this to cripple a vehicle, the health will start to decrease quickly and ultimately explode. Keep setting the health continuously to keep it constant.


C# Syntax

void NAPI.Vehicle.SetVehicleHealth(Vehicle vehicle, float health);

Parameters

  • vehicle: parameter input should be in Vehicle type
  • health: parameter input should be in float type

Full health from a vehicle is 1000.0 but you can use higher values.

Example

NAPI.Vehicle.SetVehicleHealth(Vehicle vehicle, float health);