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

Blink + Pathing Blockers

Status
Not open for further replies.
Level 28
Joined
Mar 25, 2008
Messages
2,955
Well here's my problem..
I have regions surrounded by pathing blockers.
Now i want to make units be able to use 'blink' (whether triggered or not) INSIDE the region but not to be able to blink outside the region
like:

Code:
---------------------------
| Unit -> blink -> target |
|                         |
---------------------------
and not
Code:
--------------------
| Unit -> blink -> | target
|                  |
--------------------
Is that possible somehow?
 
Level 8
Joined
Jul 22, 2008
Messages
331
only one way!!!

create une more custom blink with 0(zero) range and when your unit is in region
sorounded by pathing blockers just use this
  • Unit - remove blink from entering unit
  • Unit - add (your custom blink to Entering unit)
Just create the same blink with only range modified. then user won't even see
that you've changed an ability
 
Level 13
Joined
Nov 4, 2006
Messages
1,239
i don't know if it works but maybe sth like this:

  • Events
    • Unit - a Unit starts casting an ability
  • Conditions
    • ability being cast equal to blink
  • Actions
    • if triggering unit is in your region and target point of ability being cast is not in your region order unit to stop
i don't know if it will be moved before the trigger fires, if it does save the point of your unit every second or something and move it back to that position, might cause some problems maybe but i can't think of another way
 
Status
Not open for further replies.
Top