On map initialization hook up GameUI/UIContainer/ConsoleUIContainer/CommandPanel/CommandButton0X (where X is the button number you want)and then save the last created dialog item as a variable.
Have a second trigger with a Dialog Item Is Used trigger for mouse entering the dialog item and a condition that makes sure the used dialog item is that from the variable and if the correct unit is selected (Selected Unit function). This trigger then primes a third trigger that uses a Mouse Clicked event.
You also need a trigger that disables the mouse clicked trigger when leaving the dialog item.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Sorry, i no understend how should i do Can you write me an instruction in the form of code? (full structure action) For example: Create Units With Defaunt Facing Actions: Unit - Create 1 Zergling for player 1 at spawnpoint using default facing (No Options) Or screanshote, map: