• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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 28
Joined
Feb 18, 2014
Messages
3,580
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