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

Sucking vortex spell

Status
Not open for further replies.
Level 4
Joined
Jul 25, 2005
Messages
48
How would I make a spell that slowly sucks units that come within 300 of the unit slowly get sucked in close to the caster?

I tried doing it and I could only push them away.

Thanks.
 
Level 4
Joined
Mar 19, 2005
Messages
95
LOL!!
You can make a push back effect, right?
Just use a negative value for pushing back so the unit will be pulled and stop while unit is in the center of.

Do you understand?

Tell me.

Hope I could help.

Thx.
 
Level 4
Joined
Jul 25, 2005
Messages
48
Yea I tried to do it as a negative value, but I don't know how to make it stop in the middle, how would I do that?
 
Level 4
Joined
Mar 19, 2005
Messages
95
First you define to local vars
x and y the x-coord and the y-coord of the spell target location, ok? Then, evertime you want to move the unit, you check if the unit is in range of maybe 20 of these coords, if yes, don't move the unit, else move it, ok?

Any more questions.

Are you able to write in jass??
That would help much
 
Level 4
Joined
Jul 25, 2005
Messages
48
I still don't know, it just pushes the opposite the way the unit with the ability is facing, am I supposed to use polar or point? Can you explain a little more please?
 
Status
Not open for further replies.
Top