• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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