Arkan
Nobody rides for free
- Reaction score
- 92
I have the weirdest problem, earlier today I wrote this and it worked perfectly (16 units are created casting carrion swarm at their facing angle).
Now when I try it it doesn't work anymore. The units are created but they won't issue the order. I can click one of the units and order it and there is no problem. But the units should be invisible w locust so they need to fire themselves (which they did before).
I haven't changed a thing, why is WE doing this to me?
Now when I try it it doesn't work anymore. The units are created but they won't issue the order. I can click one of the units and order it and there is no problem. But the units should be invisible w locust so they need to fire themselves (which they did before).
I haven't changed a thing, why is WE doing this to me?
JASS:
local unit caster = GetTriggerUnit()
local real x = GetUnitX(caster)
local real y = GetUnitY(caster)
local unit dummy
local real angle = 0.00
loop
exitwhen angle == 360.00
set dummy = CreateUnit(GetOwningPlayer(caster),039;h000039;,x,y,angle)
call UnitAddAbility(dummy,039;A09N039;) //carrion swarm
call IssuePointOrder(dummy,"carrionswarm",(x + CosBJ(angle)*20),(y + SinBJ(angle)*20))
set angle = angle + 22.50
endloop