MeleeActionDamage

From RAGE Multiplayer Wiki
Revision as of 20:12, 9 May 2024 by Shr0x (talk | contribs)

Client-Side
Function

 JavaScript



JavaScript Syntax


Parameters

  • source: Object
  • target: Object
  • weaponHash: number
  • damage: number
  • isCritical: boolean

Return value

  • void

Syntax

mp.events.add('meleeActionDamage', (source, target, weaponHash, damage, isCritical) => {});

Example

mp.events.add('meleeActionDamage', (source, target, weaponHash, damage, isCritical) => {
    if (isCritical) {
        mp.console.logInfo(`${target.name} got critically wounded by ${source.name}.`);
    }
});


See Also

Browser

Checkpoints

Colshapes

Console

Common

Damage

Vehicles

Voice chat

Streaming

Graphics

Waypoint

Misc