D.V.D
Make a wish
- Reaction score
- 73
Forgot to mention, your supposed to press the left arrow key for it to start. Don't move songoku when he starts it or it will look really bad.
set Laser[GetForLoopIndexA()] = null
set Laser<i> = null</i>
You get the Cos (for offsetting X) and Sin (for offsetting Y) value of your angle*, and multiply it by your offset distance. Then, add the resultant values to the coordinates you are offsetting e.g.How? You just multiply them with the angle? And is there a native polarprojection.
local real angle = GetUnitFacing (caster) * bj_DEGTORAD
local real x2 = x1 + Cos (angle) * offset
local real y2 = y1 + Sin (angle) * offset
local real angle = Atan2 (GetLocationY (targetLoc) - GetUnitY (caster), GetLocationX (targetLoc) - GetUnitX (caster))
local real x2 = x1 + Cos (angle) * offset
local real y2 = y1 + Sin (angle) * offset
No, Cos corresponds to X, while Sin corresponds to Y.
I don't know what Sin nor Cos do, but I still use them.