Is it possible to make a unit uncommandable but still able to use abilities when the player clicks on its command card.
I tried removing the command card and make it commandable, but the player will still be able to use his mouse to right click to move this unit. This is not what i am aiming for.
What I am aiming for is, making the unit uncommandable by the player, the only thing the player can do to the unit is to use its abilities. While the unit is moving.
use trigger, make a dummy unit for the command card the player controls. than use triggers to make it so that when player presses button A on dummy unit's command card, the actual unit you dont want them to control will do what you intended button A to do.
Oh, I see, that's an idea! but I want it to be on every individual units which is a lot of units. I get what you mean. I have actually done this as well, but this is more of macro management then micro management. I am looking for the latter.
I have found the solution to this. All i needed to do was to make it commandable but under abilities, i take away the move command.
Under the command card, i take everything away besides the abilities i want the unit to have.
In WC3, there was a trick to remove the smart commands, not sure, if it works in SC2, though:
Add a rally ability, so every right-click will set a rally point (aka do nothing) instead of issuing a move order.
Maybe there are better ways, it might even be possible to edit the move and attack abilities to not accept smart commands? I don't know.
You can remove the functionality of smart click with
UI disable smart click for [player].
You won't be able to attack or move with the mouse. All of your abilities should still work including move. If you leave move on your command card you can hit M and click to move. You can remove the hotkey and hide the button if you dont want it. You'll still be able to issue orders if you want to move the unit.
Hope this helps!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi all, as the title says.
Is it possible to make a unit uncommandable but still able to use abilities when the player clicks on its command card.
I tried removing the command card and make it commandable, but the player will still be able to use his mouse to right click to move this unit. This is not what i am aiming for.
What I am aiming for is, making the unit uncommandable by the player, the only thing the player can do to the unit is to use its abilities. While the unit is moving.
Thanks
use trigger, make a dummy unit for the command card the player controls. than use triggers to make it so that when player presses button A on dummy unit's command card, the actual unit you dont want them to control will do what you intended button A to do.
is that what ur looking for?
Oh, I see, that's an idea! but I want it to be on every individual units which is a lot of units. I get what you mean. I have actually done this as well, but this is more of macro management then micro management. I am looking for the latter.
I have found the solution to this. All i needed to do was to make it commandable but under abilities, i take away the move command.
Under the command card, i take everything away besides the abilities i want the unit to have.
Thanks for the advice.
Removing the move from the command card wont affect anything.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
In WC3, there was a trick to remove the smart commands, not sure, if it works in SC2, though:
Add a rally ability, so every right-click will set a rally point (aka do nothing) instead of issuing a move order.
Maybe there are better ways, it might even be possible to edit the move and attack abilities to not accept smart commands? I don't know.
You can remove the functionality of smart click with
UI disable smart click for [player].
You won't be able to attack or move with the mouse. All of your abilities should still work including move. If you leave move on your command card you can hit M and click to move. You can remove the hotkey and hide the button if you dont want it. You'll still be able to issue orders if you want to move the unit.
Hope this helps!