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

Gate

Status
Not open for further replies.
Level 4
Joined
Feb 21, 2008
Messages
69
what do u mean im trying 2 find out myself
i wanted 2 make a gate (player controled) and make it have ability affected by triggers and when you click it
it opens n closes when you click again
this trigger 4 gates player controlled is used on maps like
village builder gold n ect
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
do you use it as a playerowned building or as a doodad?
if you use it as playerowned building, i'm not sure if there is a trigger to open it
if you use the doodad, use following trigger.

event: choose any (e.g. unit enters a region)
condition:not needed
action: destructable --> open/close/destroy gate --> open <your gate>
 
Level 18
Joined
Aug 13, 2007
Messages
1,584
Here you go. Make a gate (destructible, not building) and place a special unit near it that has the Open and Close abilities (base them off thunder clap, 0 damage, 0% slow.)

Do the following triggers:

  • Open Gate
    • Events
      • Unit - A unit Starts the effect of ability
    • Conditions
      • Ability comparison - (Ability Being Cast) equal to Open
    • Actions
      • Destructible - Open Gate <select the gate>
  • Close Gate
    • Events
      • Unit - A unit Starts the effect of ability
    • Conditions
      • Ability comparison - (Ability Being Cast) equal to Close
    • Actions
      • Destructible - Close Gate <select the gate>
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
k, try this, if the gate is open, use play unit death alternate animation, which is an open gate. then you have to find sth that units can walk through it, i guess there is a trigger to do that, but i don't know where, must be sth with make building walkable
 
Status
Not open for further replies.
Top