can't remove 1 unit from the construction queue #2364
Unanswered
nucleusgenius2
asked this question in
2. Help and Bugs
Replies: 4 comments 1 reply
|
Could you post your entire gadget? The context is very important/useful. |
0 replies
|
I think this fragment is enough, here comes the factory id and the unit id |
1 reply
|
You haven't provided any information as to what happens when you try to run your gadget. |
0 replies
|
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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
All reactions