• 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.

Minimum target range of abilities

Status
Not open for further replies.
Level 9
Joined
Dec 31, 2016
Messages
320
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