I'm working on a RPG-map and I want the player to use only WASD to move the Commando around. At the same time I want the player to be able to use the mouse to target which unit the Commando shall attack.
I want to disable the mouse move-click while still have the attack-click available.
I have tried to look around in the data-editor, but I could not find anything relevant. There are also a UI trigger that can disable smart commands, but that will disable Attack as well.
When you say you want Attack-click still in there, do you mean that you want the option of auto-attacking when the unit is given the command to attack-click? If you just want the unit to attack at a point or on a unit when you click down the mouse, you can do it with abilities and triggers much easier than with weapons.
Or perhaps have the weapon set to be unable to attack units with a certain behavior or flag, and when you select an enemy unit with your mouse, a trigger gives it the required behavior or flag to make it targetable?
I want the player to not be able to use the mouse to tell the unit where to go, but at the same time I want the player to be able to use the mouse to tell which unit to attack. I think this might be a bit hard to accomplish.
But thanks for replies. I'll try toying with those triggers.
hmmm... If that is your goal... to have them be able to attack, yet not defend, I just suggest trying to find a trigger that your hero will attack clicked units if they are hostile.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi.
I'm working on a RPG-map and I want the player to use only WASD to move the Commando around. At the same time I want the player to be able to use the mouse to target which unit the Commando shall attack.
I want to disable the mouse move-click while still have the attack-click available.
I have tried to look around in the data-editor, but I could not find anything relevant. There are also a UI trigger that can disable smart commands, but that will disable Attack as well.
Are there any way around this?
@njordys: Go
Have you experimented with the "Unit is selected" trigger event? You might be able to fake it with triggers.
When you say you want Attack-click still in there, do you mean that you want the option of auto-attacking when the unit is given the command to attack-click? If you just want the unit to attack at a point or on a unit when you click down the mouse, you can do it with abilities and triggers much easier than with weapons.
Or perhaps have the weapon set to be unable to attack units with a certain behavior or flag, and when you select an enemy unit with your mouse, a trigger gives it the required behavior or flag to make it targetable?
I would bet triggers would be the way to go.
I want the player to not be able to use the mouse to tell the unit where to go, but at the same time I want the player to be able to use the mouse to tell which unit to attack. I think this might be a bit hard to accomplish.
But thanks for replies. I'll try toying with those triggers.
For an authentic look, just simply find the unit in the data editor and set the flags "uncommandable" and "unselectable"
hmmm... If that is your goal... to have them be able to attack, yet not defend, I just suggest trying to find a trigger that your hero will attack clicked units if they are hostile.