Weird problem with issued order.

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?

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),'h000',x,y,angle)
    call UnitAddAbility(dummy,'A09N') //carrion swarm
    call IssuePointOrder(dummy,"carrionswarm",(x + CosBJ(angle)*20),(y + SinBJ(angle)*20))
    set angle = angle + 22.50
endloop
 
A

Aw2k6

Guest
I don't see anything wrong o_O It worked fine before and now has stopped?

Have you changed anything on the dummy, such as mana amount? Does it have sufficient mana to cast this ability?
 

Arkan

Nobody rides for free
Reaction score
92
Yes, I haven't changed a thing, saved the map, closed the editor, opened the editor, and now it gives me this shit.

I'm clueless.
 

vile

New Member
Reaction score
8
uh, why do you multiply the angle by 20 every time?

CosBJ(angle) will do the job for that.
 

Arkan

Nobody rides for free
Reaction score
92
20 is the distance from the source coordinate. so they'll target 20 units ahead of their facing angle.
 

vile

New Member
Reaction score
8
well, attach the map so we can see what else can go wrong, there can be object editor related issues with the dummy or the dummy ability.
 

WarLuvr3393

Hmmm...too many things to play (WoW, COD4, WC3)
Reaction score
54
The same exact thing happened to me too in my map. The spell worked perfectly then it got messed up. Make sure the Spell ID string is correct because in my last map, it worked before and somehow it got changed.
 

Arkan

Nobody rides for free
Reaction score
92
Ok, I replaced the dummy ability carrion swarm with breath of fire and changed orderstring to "breathoffire" and it worked.. for now at least.

I have triple-checked the dummy abilities and the dummy unit there is nothing wrong.

It's just really weird.
 
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