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

SetVehicleEngineHealth

Материал из RAGE MP Wiki Archive

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.


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

Example

<syntaxhighlight lang="csharp"> NAPI.Vehicle.SetVehicleHealth(Vehicle vehicle, float health); </syntaxhighlight>