Difference between revisions of "Hotkeys"

From Zero-K
Jump to navigation Jump to search
(Updated unit names, used template for key combinations, fixed menu references. Other info not checked to be factual.)
(Added terraform hotkeys and TOC.)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Using the [[Ingame Menu|in-game menu]], you can quickly bind any key combination to almost any action or unit command. For more advanced usage of hotkeys, see [[Keybind file]] description.
+
Using the [[Ingame Menu|in-game menu]], you can quickly bind any key combination to almost any action or unit command. [[Keybind file|Advanced key binding]] can be performed by editing a configuration file.
  
== Selection Keys ==
+
{{TOC right}}
  
[[Selection]] Keys are commands that quickly select groups of units. You can edit your selection keys in the game by navigating to <samp>Menu</samp>&rarr;<samp>Hotkeys</samp>&rarr;<samp>Selection</samp>.
+
<youtube>https://www.youtube.com/watch?v=phRCmp5pMos</youtube>
  
=== Some selection key examples ===
+
== Terraform ==
* {{Key press|Ctrl}}-{{Key press|C}} selects your commander and focuses on him. Forgot where your commander is? Hit {{Key press|Ctrl}}-{{Key press|C}}!
+
{{See|Terraform|Terraform#Terraforming Presets{{!}}Terraforming Presets}}
* {{Key press|Z}} selects an idle builder. Pressing it multiple times cycles through your idle builders.
+
{|class="wikitable sortable"
* {{Key press|Ctrl}}-{{Key press|B}} selects all idle builders.
+
|+Terraforming presets
* {{Key press|Ctrl}}-{{Key press|A}} selects all. Convenient in some situations, just please don't use {{Key press|Ctrl}}-{{Key press|D}} (self-destruct) with this when the battle is still going.
+
!scope="col"|Shortcut!!scope="col"|Effect
* {{Key press|Ctrl}}-{{Key press|Z}} selects all units of the same type as those in the current selection. The most used command, by many players. Very useful for keeping your army together, getting reinforcements, etc.
+
{{:Terraform hotkeys|table}}
 +
|}
  
== Auto grouping ==
+
== Selection ==
 +
{{See|Selection#Hotkeys{{!}}Selection Hotkeys}}
 +
{|class="wikitable sortable"
 +
|+Selection hotkeys
 +
!scope="col"|Press!!scope="col"|To select
 +
{{:Selection hotkeys|table}}
 +
|}
  
Ever wished to have all fighters in group 7, all gunships in group 8, all raiders in 4, etc?
+
== Unit Grouping ==
Autogroup achieves just that.
+
{{See|Selection#Autogroups{{!}}Selection Autogroups}}
 +
{|class="wikitable sortable"
 +
|+Autogroup hotkeys
 +
!scope="col"|Keys!!scope="col"|Effect
 +
{{:Autogroup hotkeys|table}}
 +
|}
  
* Auto grouping is feature of ZK (widget)
 
** {{Key press|Alt}}+<kbd>number</kbd> makes permanent "auto group" out of currently selected unit types.
 
* New units then join that group when they first become idle.
 
** {{Key press|Alt}}+{{Key press|~}} removes currently selected unit types from the auto group.
 
** {{Key press|Ctrl}}+{{Key press|~}} selects ''one'' unit out of currently selected units (closest to your mouse cursor) and removes it from any groups (not removing type from auto group, just current unit from group).
 
* Autogroup settings can be modified from the in-game menu: <samp>Menu</samp>&rarr;<samp>Settings</samp>&rarr;<samp>Interface</samp>&rarr;<samp>Control Groups</samp>.
 
 
Example use:
 
* Select a [[Glaive]] and a [[Reaver]] and press {{Key press|Alt}}+{{Key press|1}}.
 
* From then on, new [[Glaive]]s and [[Reaver]]s will join group 1 when they first become idle (after reaching factory waypoint). You can press {{Key press|1}} to select them.
 
* If you then want to add [[Knight]]s to autogroup 1, select one and press {{Key press|Alt}}+{{Key press|1}}.
 
* If you then want to remove [[Glaive]]s from autogroup 1, select one and press {{Key press|Alt}}+{{Key press|~}}.
 
  
 
{{Navbox manual}}
 
{{Navbox manual}}

Latest revision as of 11:16, 8 October 2021

Using the in-game menu, you can quickly bind any key combination to almost any action or unit command. Advanced key binding can be performed by editing a configuration file.

Terraform

Further information: Terraform  and Terraforming Presets
Terraforming presets
Shortcut Effect
Alt + VCheaply stops vehicles from passing, while letting bots pass.
Alt + BCheaply stops bots and vehicles from passing.
Alt + NProtects small to medium sized units from direct fire while allowing nearby turrets to shoot. This allows indirect fire units like Rogue or Recluse to shoot at a Stinger with impunity.
Alt + MRaises to a height that blocks direct fire and most indirect fire too.
Alt + GLevels terrain to the height of the ground at the clicked location.
Alt + HRaises tall spire to give high ground advantage for units like Crab.
Alt + JMakes a deep hole, which can be useful for hiding in a pinch.

Selection

Further information: Selection Hotkeys
Selection hotkeys
Press To select
Ctrl + AEverything.
Ctrl + FAll mobile non-builder units.
ZAn idle builder; press repeatedly to cycle trough idle builders.
Ctrl + BAll idle constructors.
Ctrl + CCommander.
Ctrl + ZAll units that are the same as the one you are currently selecting.
Ctrl + XAll units that are the same as the one you are currently selecting that are currently visible on the screen.
Ctrl + TTransports.
Ctrl + SOwls.
Ctrl + GRaptors.
Ctrl + IRemoves non-idle units from your selection.
Ctrl + ERemoves all units that are above 30% HP from your selection.

Unit Grouping

Further information: Selection Autogroups
Autogroup hotkeys
Keys Effect
Alt + numberMakes permanent autogroup out of currently selected unit types. New units then join that group when they first become idle.
Alt + ~Removes currently selected unit types from the autogroup.
Ctrl + ~Selects one unit out of currently selected units (closest to your mouse cursor) and removes it from any groups (not removing type from autogroup, just current unit from group).