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

Unit help

Status
Not open for further replies.
Level 9
Joined
Aug 11, 2007
Messages
429
So i made a castle builder map, and everyone says it needs gates.

So i need to make a unit where if u click the ability the gate opens, and if u click the other ability the gate closes. And i do that how?
 
Level 11
Joined
Feb 22, 2006
Messages
752
Make two dummy abilities based on Channel. Make sure they have unique BaseOrderID's and set all special effects to null (unless you want them), set options to visible, follow through time to 0.01, casting type to instant, mana cost to 0, and cooldown to 0.01. One will be "open gate" and the other will be "close gate".

Now make a trigger that detects Event - Unit Starts the Effects of an Ability. In the conditions check to see if it is the "open gate" ability. In the actions do Destructable - Open [your gate].

Now make another trigger that detects the casting of the "close gate" ability and have that trigger close your gate.
 
Status
Not open for further replies.
Top