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

Global Gate Open Ability

Status
Not open for further replies.
Level 2
Joined
Sep 4, 2008
Messages
5
Hey guys, I was wondering if anyone could help me out with this ability trigger I'm trying to get working correctly.


Currently the trigger works, I have an ability on a unit - that when cast, it opens the main gate to the city, and closes itself after 10 seconds:
  • Events
    • Unit - A unit owned by Player 1 (Red) Begins casting an ability
  • Conditions
    • (Ability being cast) Equal to Open Gate
  • Actions
    • Destructible - Open Gate (Horizontal) 0004 <gen>
    • Wait 10.00 seconds
    • Destructible - Close Gate (Horizontal) 0004 <gen>
Now, I want to revamp this trigger so that it works for all gates on my map, separately. So that, this ability could open any gate on the map, but the unit has to be in front of it (in a placed region at the gate) Ideally it would function like this:

Event
-Player Casts a spell

Condition
-Ability being cast = open gate
-Casting unit is in XXX region

Actions
-destr-open gate XXX
-wait 10 seconds
-destr-close gate XXX

However, I couldn't find the condition trigger for a casting unit required to be in a region.

Could anyone please lend me a hand to get this trigger functioning?
 
Level 2
Joined
Sep 4, 2008
Messages
5
Awesome, some you very much Avator!

I knew it had to be in there somewhere, I very much appreciate the hand ^_^
 
Status
Not open for further replies.
Top