• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! 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 13
Joined
Jan 2, 2016
Messages
978
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