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

Minimum target range of abilities

Status
Not open for further replies.
Level 9
Joined
Dec 31, 2016
Messages
314
I have a custom ability based on Channel. Is it possible to set minimum custing range of such ability? It deals damage in an area around your casting position and around your target position and it would be too op if you could just cast it right under your feet.
 
Level 5
Joined
Jun 13, 2017
Messages
83
Yeah simple just make a trigger with 2 point variable
When unit start effect of ability
Set point1 = caster position
Set point2 = target position
If/then/else
If
Distance between point 1 and point 2 less then 150
Then
Order unit to stop
You cound add sound here like error or somthing
Else
Start the effect of ability
 
Status
Not open for further replies.
Top