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

Is there a condition to check if the unit's attack is ranged or melee?

Status
Not open for further replies.
Level 16
Joined
Mar 25, 2016
Messages
1,327
It's normal jass. Do you mean implement in GUI?
  • TestIfMelee
    • Events
    • Conditions
    • Actions
      • Custom script: if(IsUnitType(udg_TestUnit,UNIT_TYPE_MELEE_ATTACKER)) then
      • -------- do your code here --------
      • Custom script: endif
TestUnit is the variable of the unit you are checking.
 
Status
Not open for further replies.
Top