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

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