Skip to content
M2O Scripting APIScripting reference
Data shapeClient APIGenerated

PlayerDamageEvent

Defined in: client/api.d.ts:2057

Native damage applied to the local player.

attacker: Player | null

Defined in: client/api.d.ts:2061

Resolved attacking player, or null for world and unresolved damage.


bodyPart: number

Defined in: client/api.d.ts:2081

Native hit body-part identifier.


damage: number

Defined in: client/api.d.ts:2091

Raw damage reported by the game.


damageType: number

Defined in: client/api.d.ts:2076

Native damage-type identifier.


direction: Vector3

Defined in: client/api.d.ts:2116

Damage direction.


health: number

Defined in: client/api.d.ts:2101

Local player’s health after the hit.


healthLost: number

Defined in: client/api.d.ts:2106

Health removed by the hit.


normal: Vector3

Defined in: client/api.d.ts:2121

Impact surface normal.


position: Vector3

Defined in: client/api.d.ts:2111

World-space impact position.


power: number

Defined in: client/api.d.ts:2096

Native impact power.


ultimate: boolean

Defined in: client/api.d.ts:2086

Whether Mafia II marked the hit as ultimate damage.


vehicle: Vehicle | null

Defined in: client/api.d.ts:2066

Car the attacker ran the local player over with, or null when the hit was not a run-over.


weaponId: number

Defined in: client/api.d.ts:2071

Native weapon identifier; 0 when the hit had no weapon, such as a run-over.