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

Detect race (not default races)

Status
Not open for further replies.
Level 5
Joined
Dec 25, 2018
Messages
110
How can I detect with triggers that target unit is creep/naga etc?
In 'race' option there is Human, Undead, Orc, Elf, Demon and nothing else
 
Level 30
Joined
Feb 18, 2014
Messages
3,623
I don't think that's possible unfortunately... But perhaps you can trick this by assigning a race variable to some unit (i.e: a naga unit) and then detect if another unit has the same race as the race variable.
  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Naga = (Race of "Some Unit")
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Race of "Your unit") Equal to Naga
        • Then - Actions
          • -------- Do your stuff here --------
        • Else - Actions
 
Last edited:
Status
Not open for further replies.
Top