I'm running a trigger with the event Unit is Clicked, I have also disabled Cannot be Clicked in the data for the unit.
Now I try to assign an attack move when I click on that unit, it works fine if I use the left mouse button but when I try to use the right mouse button nothing happens.
Anyone knows how to fix this ?
Maybe I misunderstand you, but I don't run a Mouse Click event.
The event that triggers the trigger, is "Unit Selection - Any Unit is clicked by Player Any Player"
However it seems like that it only triggers on left mouse click.
You'll probably have to use a trigger. unit selection is only triggered by a left click. I don't think you can do what you want without writing a custom script.
Well, by using a region of course which is a good way of dealing with this kind of issues. But to do so without a region is tricky, and I can't really tell you how since I haven't yet experienced it yet myself. So if you don't want to use a region then you should go with what Anthius said; "I don't think you can do what you want without writing a custom script."
I'm running a trigger with the event Unit is Clicked, I have also disabled Cannot be Clicked in the data for the unit. Now I try to assign an attack move when I click on that unit, it works fine if I use the left mouse button but when I try to use the right mouse button nothing happens. Anyone knows how to fix this ?
@freche: Go
change the UI of left mouse clicked DOWN - to the opposite; Right mose button Clicked DOWN.
Or, make sure you have fixed the variables for it so that you can execute an order on a mouse button command.
@sheldin: Go
Maybe I misunderstand you, but I don't run a Mouse Click event. The event that triggers the trigger, is "Unit Selection - Any Unit is clicked by Player Any Player" However it seems like that it only triggers on left mouse click.
You'll probably have to use a trigger. unit selection is only triggered by a left click. I don't think you can do what you want without writing a custom script.
@Anthius: Go
he can do what he want, but he needs to use a UI mouse click event for that - without any custom scripts.
@sheldin: Go But how do check if there is a unit where I clicked, when using the "UI mouse click event" ? Preferred without using a region.
@freche: Go
Well, by using a region of course which is a good way of dealing with this kind of issues. But to do so without a region is tricky, and I can't really tell you how since I haven't yet experienced it yet myself. So if you don't want to use a region then you should go with what Anthius said; "I don't think you can do what you want without writing a custom script."
@sheldin: Go
The problem with region is that it makes targeting Air units kinda hard. Since the unit is "standing" a lot more south of where they visually are.
@freche: Go
then I suppose the script is the only way.