Ugh... I slightly remember this problem but I've been out of wc3 for a while now
I have this code
(yeah i know it leaks and isnt optimized)
In a backup of my map this code works fine. However, in the latest version, the dummy spawns but nothing happens.
I put this code in both maps to debug
and it shows the backup issuing the correct order (carrionswarm) and the latest version doesnt show anything (as expected)
the dummy unit is exactly the same, i even copy-pasted the dummy unit to double check.
any ideas?
the assembler in me is about to difference check the two .j scripts
I have this code
JASS:
function FireWave takes integer playerId, integer id, real x, real y, real angle, integer this returns nothing
local unit dummy
set dummy = CreateUnit(Player(playerId), casterDummy, x - (Cos(angle) * 200), y - Sin(angle) * 200, 0)
call setAttach(dummy, this)
call UnitAddAbility(dummy, id)
call IssuePointOrder(dummy, "carrionswarm", x + Cos(angle) * 100, y + Sin(angle) * 100)
endfunction
(yeah i know it leaks and isnt optimized)
In a backup of my map this code works fine. However, in the latest version, the dummy spawns but nothing happens.
I put this code in both maps to debug
JASS:
library dsf initializer onInit
private function ot takes nothing returns nothing
call BJDebugMsg("ORDER : " + I2S(GetIssuedOrderId()))
endfunction
private function onInit takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerAddAction(t, function ot)
endfunction
endlibrary
and it shows the backup issuing the correct order (carrionswarm) and the latest version doesnt show anything (as expected)
the dummy unit is exactly the same, i even copy-pasted the dummy unit to double check.
any ideas?
the assembler in me is about to difference check the two .j scripts