HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Distinguishing ranged vs melee

06-05-2008, 09:37 AM#1
grim001
Is there any known way to distinguish between a unit with a ranged attack vs a unit with a melee attack other than manually attaching something to them based on typeid?
06-05-2008, 09:50 AM#2
Rising_Dusk
Collapse JASS:
IsUnitType(MyUnit, UNIT_TYPE_RANGED_ATTACKER)
IsUnitType(MyUnit, UNIT_TYPE_MELEE_ATTACKER)
06-05-2008, 10:03 AM#3
grim001
Wow, that's useful.