VehicleDamage

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Event triggered when a vehicle gets damage.

Server-Side
Event

C.png C# Js.png JavaScript




C# Syntax
C.png


JavaScript Syntax
Jslogo.png

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