Warcraft III resources & community, 2003–2006 · archived

Pushing...

6 posts
#1

Pushing...

anyone know how to cause a unit to be pushed as they are touched? I can make it push, but not n the direction i want. A thing is spinning around a unit, and every unit in range of the spinning object gets pushed if they run into it, but i cant seem to make it push correctly
#2
WAIT.

so you mean you dont know how to push to an angle, or you dont know what angle to push to

if the second one, then is the angle pushed supposed to be random? or is it Angle Between Points? what?
#3
Well when i use the push trigger, instead of pushing...it pulls em. Get it?
#4
are you sure your angle and equations are right?

---post the code plz---
#5
Ok, heres the GUI code....

Periodic Event - Every 0.03 seconds
Condition- None
Actions-

Pick everyunit in range of (UnitArray[2]) and do-
For loop integer 2-5 do-
Move picked unit instantly to position of picked unit offset by -15 towards facing of UnitArray[ForLoopIntegerA]
#6
offset by -15? try 15 instead