[Java] Clear factory build queue [solved]
Posted: 16 Dec 2015, 22:24
Is there a simple way to clear the build queue of a factory?
I have tried unit.stop() with no success.
doesn't seem to work either.
2 indicates CMD_REMOVE, 64 stands for CONTROL_KEY.
Any suggestions?
Also storing command ids as float doesn't seem to make much sense to me. Is there any alternative way of issuing custom commands?
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.
Any suggestions?
Also storing command ids as float doesn't seem to make much sense to me. Is there any alternative way of issuing custom commands?