~GaLs~
† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
- Reaction score
- 180
The red dot is my hero.
Blue cross is my dummy.
How do I change my dummy's position according to the black path?
What's the formula to use?
Any snippets around?
function tick ...
local data d = GetTimerData(...)
local integer i = 0 // d.da = dummy angle // d.d = dummy
loop // d.distance = dist // d.x/y = caster x/y
exitwhen i > 4
set d.da<i> = d.da<i> + 5 // working in degrees here
call SetUnitX(d.d<i>,d.x+d.distance*Cos(d.da<i>*bj_DEGTORAD))
call SetUnitY(d.d<i>,d.y+d.distance*Sin(d.da<i>*bj_DEGTORAD))
set i = i + 1
endloop
set d.distance = d.distance - 5
endfunction</i></i></i></i></i></i>