• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[General] No blink through gate

Status
Not open for further replies.
Or have a region inside those gates and make a boolean variable to false as long as they are closed. When the gates open change boolean to true.
And then when the unit leaves that region, check if a boolean is true or false. If it's false, return the unit inside.
 
OK I can put a region behind the gate and check if the gate is alive(open gate is dead gate)
so it would be like

  • Village
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Blink (Time Warper)(W)
          • (Ability being cast) Equal to Blink (Temporal)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Iron Gate (Vertical) 0015 <gen> is alive) Equal to True
        • Then - Actions
          • ???????????????????????
          • Unit - Order (Triggering unit) to Stop
        • Else - Actions
How to check if the point is in the region?
 
You could also make the area behind the gate not visible. I don't know the easiest way to accomplish this, but you could use the line-of-sight blockers and kill them when the gate opens.
 
Are there any other units supposed to be behind that gate?
If not, you can add a pathing blocker using a custom pathing map to fill a large area behind the gate.
This will make all blinks, teleports, whatever search for the nearest valid place to blink to which will be on their side of the gate.
However this does mean that noone is able to be at the other side until the gate is destroyed (when you remove that pathing blocker).

I use this method in a map of mine and it works great, but the gates in my map are simply said, the edge of the map as long as they are alive.
 
Status
Not open for further replies.
Back
Top