• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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