Flare
Stops copies me!
- Reaction score
- 662
That's freehand coding for you
Some stuff that can help it do less multiplication:
JASS:local real real1 = GetUnitFacing(GetTriggerUnit())*bj_DEGTORAD local real x2 = x + 300 * Cos(real1 + 2.531) local real y2 = y + 300 * Sin(real1 + 2.531) local real x3 = x + 300 * Cos(real1 + 3.142) local real y3 = y + 300 * Sin(real1 + 3.142) local real x4 = x + 300 * Cos(real1 + 3.752) local real y4 = y + 300 * Sin(real1 + 3.752)
Because it is doing the radians of the facing + the radians of the numbers you have. A little less math for the machine.
local real real1 = GetUnitFacing(GetTriggerUnit())* .017453
local real newx = x + 300
local real newy = y + 300
local real x2 = newx * Cos(real1 + 2.531)
local real y2 = newy * Sin(real1 + 2.531)
local real x3 = newx * Cos(real1 + 3.142)
local real y3 = newy * Sin(real1 + 3.142)
local real x4 = newx * Cos(real1 + 3.752)
local real y4 = newy * Sin(real1 + 3.752)
Channels up elektricity to then send it out in form of a giant electricity ball towards your enemy. The electricity ball will follow the target untill it reaches it's goal. When hit the electricity ball will shock all enemies within range of the target dealing damage.
What do you mean by that?you know its electricity don't you?
->...Channels up elektricity to then send it out in form of a giant electricity ball towards your enemy. The electricity ball will follow the target untill it reaches it's goal. When hit the electricity ball will shock all enemies within range of the target dealing damage.
It's just an example to describe what it does... If you have any better suggestions please post them here so I can change it.->...
Channels up elektricity to then send it out in form of a giant electricity ball towards your enemy. The electricity ball will follow the target untill it reaches it's goal. When hit the electricity ball will shock all enemies within range of the target dealing damage.
Broken due to TT & TimedLightnings.