can't remove 1 unit from the construction queue #2364
Replies: 4 comments 1 reply
-
|
Could you post your entire gadget? The context is very important/useful. |
Beta Was this translation helpful? Give feedback.
-
|
I think this fragment is enough, here comes the factory id and the unit id |
Beta Was this translation helpful? Give feedback.
-
|
You haven't provided any information as to what happens when you try to run your gadget. |
Beta Was this translation helpful? Give feedback.
-
|
there was no error from the engine, but ivand pointed out one of the causes of the error, I used the wrong thing Spring.GiveOrderToUnit(factoryID, CMD.REMOVE, {unitDefID}, CMD.OPT_ALT) - that's how it should be, though it deletes the entire queue with a specific unit entirely, so that it would be deleted one by one I still think |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Spring.GiveOrderToUnit(factoryID, -unitDefID, {}, {CMD.OPT_CTRL }) didn't work for me
Spring.GiveOrderToUnit(factoryID, -unitDefID, {}, {"ctrl"}) Same
I'm trying to make my own gadget to cancel the construction of units one by one in the factory
Beta Was this translation helpful? Give feedback.
All reactions