I have tried unit.stop() with no success.
Code: Select all
List<Float> cmds;//contains CommandIDs(=negative unit def id) of units in queue getUnit().executeCustomCommand(2, cmds, 64, frame + 50)
2 indicates CMD_REMOVE, 64 stands for CONTROL_KEY.
Also storing command ids as float doesn't seem to make much sense to me. Is there any alternative way of issuing custom commands?