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
 
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.
Back
Top