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

[Trigger] Gate open/close

Status
Not open for further replies.
Level 2
Joined
Jul 21, 2007
Messages
28
You're going to need a dummy ability, I think. And then using triggers detect when the ability is cast.

So Unit -- Start the effect of any ability

And then in the conditions, Ability being cast equal to <open gate>

And from there the events in the destructible category should work. It is called Open/Close/Destroy gate.
 
Level 6
Joined
Nov 28, 2007
Messages
203
well, if u change the model, it must have an opening/closing animation :) does your model have it? and with the same name as the usual gate?
 
Level 5
Joined
Jul 11, 2007
Messages
152
If this works for your map you could make a region where if you enter in front of it the gate opens and when you leave the region the gate closes. (The region would span before and after the gate)

If this doesn't work I would suggest making an ability for a unit (or building) where you take an ability like taunt and change it so that it effectively doesnt do anything but be cast and the your trigger will be
Event: Unit - Unit begins casting an ability
Conditions: Ability being cast equal to taunt1 (change to open gate or whatever)
Gate equal to alive
Actions: Open Destructible - Gate

And then do the same ability for closing too
Hope this helps!
 
Status
Not open for further replies.
Top