Pushing...

Level 5
Joined
Feb 14, 2005
Messages
48
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
 
Level 5
Joined
Feb 14, 2005
Messages
48
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]
 
Top