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


See also