HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

move unit

07-14-2003, 06:12 PM#1
pantagruel
is it possible to move a unit over time or at least with a rate?
07-14-2003, 06:25 PM#2
Vidstige
I guess that the below native functions from common.j might be helpful.

Code:
native IssuePointOrder              takes unit whichUnit, string order, real x, real y returns boolean
constant native GetUnitX            takes unit whichUnit returns real
constant native GetUnitY            takes unit whichUnit returns real

Do they make any sense?
07-24-2003, 02:19 PM#3
DaKaN
I asume move a unit over time you mean something similar to the "knockback" that some cinemas did.

best thing to do is set up a new trigger that fires when a counter expires. The counter will be reset until a condition is true to .01 seconds.

The actual commands would be to move unit instantly to point with offset in a direction (you can get the angle between 2 points if you needed it, its a normal blizzard math function) Then move the unit about 20-30 units (or higher if you want it to fly foward or backwards faster)