moving units

mems

Memory Lapse
Reaction score
24
Im trying to create a custom spell
This spell will move the targeted unit from one point to another
unit will not walk will be pushed.

I figured that i must use some for loops with "move unit intsant" function.
But i really do not understood the English of in this function and tried loads of wariations to understand how does this functions moves units:

- Point with offset: a region/point and 2 real values
- point with polar offset: a region/point and 2 real values

Im a bit bad on mathematics and could not figured out what does this functions do exactly. The tests i made, confusing me like hell.

Con some one explane what they do?

And how can i make the best push effect on instand moving? Couse For loop with 0.01 waiting time makes the movement slow and it looks really bad. Also if i dont put wait then it moves the unit instandly..
:(
 

mems

Memory Lapse
Reaction score
24
okay i found how to use them but still loop/move affect is a kinda crappy and i have looked some spells made by other people they are using it like me..
ty anyway
 

Sud

"[If life=Dota] I'd have quit long ago" -- Acehart
Reaction score
64
The smoothest push effect is done via a rapidly executing trigger (or perhaps loop, though I don't like them as they steal trigger focus), the most being a 1 pixel run around (also generates the most lag).

In general, point with polar offset works by allowing you to specify a point, then go a distance (the offset) in any angle (0 to 360, 0 being north), I don't use point with offset given the extra functionality of the polar offset variant.

For the strongest triggering of this, you have to use the angle between points too, or at least have triggers going to calculate the facing of the unit (both of these functions can be found under the Real data type).
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
590
Not sure

e:Unit- a unit begins casting a spell
c: spell being cast = to (moveing)
a: Unit- order unit to stop
Unit-order casting unit to move to center of walk(gen)
wait 1 second
Unit-order casting unit to move to center of walk2(gen)
wait 1 second
Unit-order casting unit to move to center of finish walking(gen)

or something like that, i hope that helped

~:D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top