• 🏆 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!

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