• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Pushing...

Status
Not open for further replies.
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]
 
Status
Not open for further replies.
Top