PlayerDamageEvent
Defined in: client/api.d.ts:1241
Native damage applied to the local player.
Properties
Section titled “Properties”attacker
Section titled “attacker”attacker:
Player|null
Defined in: client/api.d.ts:1245
Resolved attacking player, or null for world and unresolved damage.
bodyPart
Section titled “bodyPart”bodyPart:
number
Defined in: client/api.d.ts:1265
Native hit body-part identifier.
damage
Section titled “damage”damage:
number
Defined in: client/api.d.ts:1275
Raw damage reported by the game.
damageType
Section titled “damageType”damageType:
number
Defined in: client/api.d.ts:1260
Native damage-type identifier.
direction
Section titled “direction”direction:
Vector3
Defined in: client/api.d.ts:1300
Damage direction.
health
Section titled “health”health:
number
Defined in: client/api.d.ts:1285
Local player’s health after the hit.
healthLost
Section titled “healthLost”healthLost:
number
Defined in: client/api.d.ts:1290
Health removed by the hit.
normal
Section titled “normal”normal:
Vector3
Defined in: client/api.d.ts:1305
Impact surface normal.
position
Section titled “position”position:
Vector3
Defined in: client/api.d.ts:1295
World-space impact position.
power:
number
Defined in: client/api.d.ts:1280
Native impact power.
ultimate
Section titled “ultimate”ultimate:
boolean
Defined in: client/api.d.ts:1270
Whether Mafia II marked the hit as ultimate damage.
vehicle
Section titled “vehicle”vehicle:
Vehicle|null
Defined in: client/api.d.ts:1250
Car the attacker ran the local player over with, or null when the hit was not a run-over.
weaponId
Section titled “weaponId”weaponId:
number
Defined in: client/api.d.ts:1255
Native weapon identifier; 0 when the hit had no weapon, such as a run-over.
