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

[Spell] [Need help] Spear throw!

Status
Not open for further replies.
Level 3
Joined
Nov 23, 2015
Messages
21
I need an ability which throws a (anything that looks like it could be thrown...black arrow works) spear (across the entire map) and it should one hit ones it hits an enemy hero. I tried with shockwave but it bugged the f*** out.

Video & commands of my tries:

https://www.youtube.com/watch?v=SzRnV5I4M2o

https://www.youtube.com/watch?v=6WFtPQfc7MU

http://i.imgur.com/v0njrCl.png

I am not the best with wc3 editor yet so a very easy explanation would be nice. I really do not know how to progress more.

SOLVED: had to do with data: distance and range.
 
Last edited:
Level 7
Joined
Nov 19, 2015
Messages
283
If you base if off shockwave it will hit everything in the AOE and until it reaches its maximum range.

If you want a single target, I would recommend you base it off storm bolt. If you want it to hit the first target it encounters, I would recommend you make a dummy unit with a periodic timer that moves it (imitating a missile).
 
Level 7
Joined
Nov 19, 2015
Messages
283
The basis of missile spells

Have a dummy unit that looks like the missile
When you cast the spell, you create the dummy and add it to a unit group

A periodic timer picks all units in the group and moves them forward
It also checks units within range
If a suitable target is within range deal the damage
 
Status
Not open for further replies.
Top