I'm using a third person camera, with WASD controls, and the right mouse button is used when you want to move the camera around. The problem with this is that it keeps giving the unit an order to move, interrupting any spells being cast.
I had someone suggest a trigger to give a stop command whenever you right click the ground, but that won't work as it'll still cancel and spell being cast.
There must be a way to remove those default actions
Sorry for necroposting, but is it possible to disable "right click to move" only for one unit while keeping its general ability to move? I have a neutral unit which moves automatically (following its needs :) ). Player can interact with this unit like with Xel'Naga tower (the unit has "Capture tower" ability) and use some abilities. But the player must not be able to move this unit. How to deal with it?
Custom move ability with SmartPriority fields set to 0. Here's an example:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<CAbilMoveid="NoSmartMove"><!-- These filters render all units untargetable --><FollowFiltersvalue="-;Player,Ally,Neutral,Enemy"/><MoveFiltersvalue="-;Player,Ally,Neutral,Enemy"/><!-- These disable all smart commands --><MoveSmartPriorityvalue="0"/><PowerupSmartPriorityvalue="0"/><RechargeSmartPriorityvalue="0"/><BoardBunkerSmartPriorityvalue="0"/><BoardTransportSmartPriorityvalue="0"/></CAbilMove>
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is there a way to disable right clicking to move?
I'm using a third person camera, with WASD controls, and the right mouse button is used when you want to move the camera around. The problem with this is that it keeps giving the unit an order to move, interrupting any spells being cast.
I had someone suggest a trigger to give a stop command whenever you right click the ground, but that won't work as it'll still cancel and spell being cast.
There must be a way to remove those default actions
In the Data Editor you can add "Uncommandable" to the Flags-property of the unit to make the user unable to use ANY commands.
Otherwise you can use a trigger with this action:
UI - Disable Smart Click for (All players) commands
Works like a charm, just tested it :P
PS: In the list it is called: Enable/Disable Command Functionality. You have to select Smart Clicks from there.
Thanks s3rius!
I'll try it out as soon as I get off work
Or set unit speed to 0. :)
That would mess up the WASD movement though BrotherLaz
disable click then hide mouse cursor with triggers =D
Oh, you're using movement to implement WASD. Nm then.
Worked like a charm s3rius, thanks
Sorry for necroposting, but is it possible to disable "right click to move" only for one unit while keeping its general ability to move? I have a neutral unit which moves automatically (following its needs :) ). Player can interact with this unit like with Xel'Naga tower (the unit has "Capture tower" ability) and use some abilities. But the player must not be able to move this unit. How to deal with it?
Custom move ability with SmartPriority fields set to 0. Here's an example: