• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Native to get a unit's melee attack damage value?

Status
Not open for further replies.
Level 3
Joined
Apr 16, 2016
Messages
28
Is there any native function to get the Unit's current melee attack damage value?

I don't mean this as detecting the amount of damage a unit has done, I literally mean the current melee damage value of a unit.
 
Level 13
Joined
Jan 2, 2016
Messages
973
as jakeZinc said, but there is something that you should note:
The damage you get this way is going to be the damage the unit has dealt, not it's base damage.
To get its base damage - you need to damage the unit by some amount, check how much damage has it taken, and calculate the unit's armor reduction, and put it into the calculation :p
 
Status
Not open for further replies.
Top