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

A question about gates

Status
Not open for further replies.
Level 15
Joined
Nov 26, 2005
Messages
1,151
Okay, so here it is.

I have a big map. Which has a lot of gates (from all different tilesets). I have a Gate tower unit with 2 abilities - Open and Close. That's cool.
Each ability picks up all destructibles in 300 radius and opens/closes them. BUT it affect all destructibles... How can I avoid this ? How can I make it affect only gates ? (not trees, walls, barrels etc.)


Ok, I figured out I can use If/Then/Else with Or - Any condition are true and list all possible gates ... but is there anything better ?
 
Status
Not open for further replies.
Top