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

Gates

Status
Not open for further replies.
Level 3
Joined
May 10, 2007
Messages
39
ok there a gate.... and near the gate there is a gate house in the gate house there the abilltys open/close......
 
Level 15
Joined
Feb 9, 2006
Messages
1,598
Make two dummyabilitys to to be hold by the house. Warstomp would be one. Call one of them ''Open'' and the other one ''Close''

Then use this trigger:

  • Trigger
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Triggering unit) Equal to (House)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Open
        • Then - Actions
          • Destructible - Open (Gate)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Ability being cast) Equal to Close
            • Then - Actions
              • Destructible - Close (Gate)
            • Else - Actions
 
Level 6
Joined
Mar 2, 2006
Messages
306
wont this make a bug? that if i kill the gate and i use the abillty it would come back again
remove those two abilities from the appropriate gatehouse:
  • GateDestroyed
    • Events
      • Destructible - Gate 0000 <gen> dies
    • Conditions
    • Actions
      • Unit - Remove Open Gate from Guard Tower 0000 <gen>
      • Unit - Remove Close Gate from Guard Tower 0000 <gen>
don't just check whether the gate is dead, because open gate is considered dead. if you want something more difficult, you will have to hold a variable which will indicate whether the gate is open, closed or destroyed...
 
Status
Not open for further replies.
Top