Uncle
Warcraft Moderator
- Joined
- Aug 10, 2018
- Messages
- 7,954
Lua:
function Dummy_Instant_AoE(p, abil)
abil = FourCC(abil)
local u = p.Dummy
if p.DummyAbility ~= nil then
UnitRemoveAbility(u, p.DummyAbility)
end
SetUnitPosition(u, GetUnitX(p.Hero), GetUnitY(p.Hero))
p.DummyAbility = abil
UnitAddAbility(u, abil)
IssueImmediateOrderById(u, abil)
print("works")
end
The print message appears so it's not like I'm crashing the thread. Also, I can manually cast the ability on my Dummy so it's not something simple like that.
Which leaves this as the only possible issue: IssueImmediateOrderById(u, abil)
abil is set to: "A001"
I'm 100% positive this is the correct id.
And if I don't set abil = FourCC(abil) then it crashes when I reference abil so that's not the issue either.
Any ideas?
Last edited: