• 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.

I need a good way to find out how much armor the spelltarget has

Status
Not open for further replies.
Level 19
Joined
Oct 12, 2007
Messages
1,821
Does someone here know a good way to find out how much armor a specific unit has?
I want to make some abilities that increase/decrease armor based on its current value like +20% armor for X seconds or something.
Is there someone that knows an efficient way of getting to know the amount of armor a unit has?
 
Level 19
Joined
Oct 12, 2007
Messages
1,821
I always heard from friends that are way more experienced with vJASS and triggers overall that using WEU has some downsides and I even heard stories that using those 'extra functions' can corrupt your map.
I'm 100% sure I once saw a function somewere in vJASS or JASS (I personally don't know the difference;-)) that checked the armor of a unit (by creating a dummy unit that attacks it and calculates the armor by checking how much of the damage got through?? Is that possible?) but I can't remember where and can't find it anymore.
 
Status
Not open for further replies.
Top