Trigger "buildiconsfirst"
Posted: 24 Oct 2008, 00:42
I'd like to trigger buildiconsfirst (the action triggered by the page number button) through Lua and I have no idea if it's possible and if it is how I would do it.
My best guess is that it has to be given as an order to a unit but since it doesn't have a command ID I don't know how.
I hope I'm just dumb and it's really easy.
I could also bind it to a key with lua, select a unit, simulate that key, unselect and unbind but I didn't find a way to simulate keystrokes either and this wouldn't be exactly the cleanest solution.
My best guess is that it has to be given as an order to a unit but since it doesn't have a command ID I don't know how.
I hope I'm just dumb and it's really easy.
I could also bind it to a key with lua, select a unit, simulate that key, unselect and unbind but I didn't find a way to simulate keystrokes either and this wouldn't be exactly the cleanest solution.