HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Getting a unit's armor type, damge type, and damge?

11-19-2004, 11:14 PM#1
tekkvicious
with jass.. can it be done and how so..
11-20-2004, 01:34 PM#2
Vexorian
No, there isn't

The only way would be encoding that kind of information in the unit's point value, or having a gigantic declaration at map initialization
11-21-2004, 07:17 PM#3
AIAndy
You could find out the armor type with some fixed damage units of different damage types and then checking what damage they do. But of course that is a bit complex and not restricted to JASS.
11-21-2004, 10:15 PM#4
Vexorian
Now that AIAndy puts it in that way, there is a function in the caster system, GetUnitDamageFactor , using DAMAGE_TYPE_UNIVERSAL and different attack types you should be able to know if an unit has certain armor
11-21-2004, 11:47 PM#5
tekkvicious
in the caster system? what are you talking about? Also GetUnitDamageFactor is that function is the blizzard.j or whatever? right now, im using empty abilities that will tell me damage types and armor tpyes. by point value do you mean that thing that can be edited in object manager?

and speaking of point value, what is it originally for.
11-22-2004, 12:31 AM#6
Taur
Quote:
Originally Posted by tekkvicious
with jass.. can it be done and how so..
sorry i'm not sure, but can't u do that with WEU?