VehicleDamage

From RAGE Multiplayer Wiki

Event triggered when a vehicle gets damage.

Server-Side
Event

 C#  JavaScript




C# Syntax


JavaScript Syntax

Parameters

  • vehicle: Vehicle
  • bodyHealthLoss: Number
  • engineHealthLoss: Number

Example

mp.events.add("vehicleDamage", (vehicle, bodyHealthLoss, engineHealthLoss) => {
 // Do what you want.
});
Notice - currently deprecated on 1.1 as it only triggers on Health Value Changes

To recreate this event, simply monitor the vehicle health on interval and compare differences over a period of time



See also