(My english is not realy perfect)
First a little code sample:
Code: Select all
Spring.GiveOrderToUnit(unitId, 90, {unitToReclaim}, {})
local unitCommands = Spring.GetCommandQueue(unitId);
the second is also not a challenge, i try to get the orders from this unit.
And here ist the Problem
The Method GetCommandQueue() returns null.
I have no Idea why.
I know the method GiveOrderToUnit() (the Unit does his order) and I know also the method GetCommandQueue(), in an other Widget it works. But only for clicked Commands. I tried since 3 Days all diverent possibility and I use also google, but I found no direction to solve this isssue.
is this a Bug in the new version, or is the usage wrong?