Difference between revisions of "A MeleeAttack"

From ECWolf Wiki
(Created page with "'''A_MeleeAttack''' (int damage[, float accuracy]) Performs a melee attack on the target. Accuracy is the probability (0.0-1.0) that the attack will succeed. Damage is not ...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''A_MeleeAttack''' (int damage[, float accuracy])
+
'''A_MeleeAttack''' (int damage[, float accuracy[, hitsound[, misssound]]])
  
 
Performs a melee attack on the target.  Accuracy is the probability (0.0-1.0) that the attack will succeed.  Damage is not multiplied by any factor.
 
Performs a melee attack on the target.  Accuracy is the probability (0.0-1.0) that the attack will succeed.  Damage is not multiplied by any factor.
 +
 +
Hitsound specifies a sound that will be played if the attack makes contact. It will also be played if the attack misses unless misssound is specified.
  
 
'''Note:''' This function is different from the deprecated A_MeleeAttack in ZDoom.
 
'''Note:''' This function is different from the deprecated A_MeleeAttack in ZDoom.

Latest revision as of 21:39, 24 June 2014

A_MeleeAttack (int damage[, float accuracy[, hitsound[, misssound]]])

Performs a melee attack on the target. Accuracy is the probability (0.0-1.0) that the attack will succeed. Damage is not multiplied by any factor.

Hitsound specifies a sound that will be played if the attack makes contact. It will also be played if the attack misses unless misssound is specified.

Note: This function is different from the deprecated A_MeleeAttack in ZDoom.