A MeleeAttack

From ECWolf Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.