• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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