Difference between revisions of "ScriptEvent:meleeAttack"

From Mod Wiki
 
(No difference)

Latest revision as of 11:27, 5 November 2007

Parameters

float damageScale -- Damage scale factor.

Result

boolean

Supported By

idWeapon

Comments

  • This will always return false on network clients.
  • If the damage scale is negative, special damage will be used instead of the regular damage.

Functionality

Applies damage to the entity hit in the last call to melee, if any, and returns whether it attempted to apply damage.