• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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