• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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 12
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