Difference between revisions of "Unit commands"

From Zero-K
Jump to navigation Jump to search
Line 1: Line 1:
 +
 +
 
== Basics ==
 
== Basics ==
  
 
Units are controlled by giving them commands. There are three kinds of commands:
 
Units are controlled by giving them commands. There are three kinds of commands:
* targeted commands, such as Move or Attack.
+
* Targeted commands, such as Move or Force Fire.
* instant commands, such as Wait or Self-destruct.
+
* Instant commands, such as Wait or Self-destruct.
* [[Unit states|state commands]], such as Fire State or Cloak.
+
* [[Unit states|State commands]], such as Fire State or Cloak.
  
 
Some targeted commands have area versions, where the command is given continuously onto valid targets in the area as long as there are any. Drag when giving the order to do an area command.
 
Some targeted commands have area versions, where the command is given continuously onto valid targets in the area as long as there are any. Drag when giving the order to do an area command.
Line 13: Line 15:
 
You can also use SPACE to insert at the front of the queue, or SHIFT+SPACE to insert in the middle of the queue (between two closest orders).
 
You can also use SPACE to insert at the front of the queue, or SHIFT+SPACE to insert in the middle of the queue (between two closest orders).
  
== List ==
+
== Full List of Commands ==
 
Common targeted commands:
 
Common targeted commands:
 
* [[Move Command|Move]]
 
* [[Move Command|Move]]
Line 68: Line 70:
 
* [[Retreat|Retreat]]
 
* [[Retreat|Retreat]]
 
* [[Resources Reserve|Reserve]]
 
* [[Resources Reserve|Reserve]]
 +
 +
State commands:
 +
* [[Unit States#Fire State|Fire State]]
 +
* [[Unit States#Move State|Move State]]
 +
* [[Unit States#Repeat|Repeat]]
 +
* [[Unit States#Overkill Prevention|Overkill Prevention]]
 +
* [[Unit States#Retreat|Retreat]]
 +
* [[Unit States#Build Priority|Build Priority]]
 +
* [[Unit States#Misc Priority|Build Misc]]
 +
* [[Unit States#Factory Assist|Factory Assist]]
 +
* [[Unit States#Cloak|Cloak]]
 +
* [[Unit States#Unit AI|Unit AI]]
 +
* [[Unit States#On/Off|On/Off]]
 +
* [[Unit States#Idle State|Idle State]]
 +
* [[Unit States#Floatstate|Floatstate]]
 +
* [[Unit States#Trajectory|Trajectory]]
 +
* [[Unit States#Fire at Radar|Fire at Radar]]
 +
* [[Unit States#Dive State|Dive State]]
 +
* [[Unit States#Area Cloak|Area Cloak]]
 +
* [[Unit States#Gunship Strafe|Gunship Strafe]]
 +
* [[Unit States#Kill Captured|Kill Captured]]
 +
* [[Unit States#Drone Construction|Drone Construction]]
 +
* [[Unit States#Impulse Mode|Impulse Mode]]
  
 
== Modifiers ==
 
== Modifiers ==

Revision as of 20:06, 10 April 2018


Basics

Units are controlled by giving them commands. There are three kinds of commands:

  • Targeted commands, such as Move or Force Fire.
  • Instant commands, such as Wait or Self-destruct.
  • State commands, such as Fire State or Cloak.

Some targeted commands have area versions, where the command is given continuously onto valid targets in the area as long as there are any. Drag when giving the order to do an area command.

Others have line versions. Each unit being given the order gets a different target along the line.

Most targeted and instant commands can be queued using SHIFT. This puts the order at the end of the queue. You can also use SPACE to insert at the front of the queue, or SHIFT+SPACE to insert in the middle of the queue (between two closest orders).

Full List of Commands

Common targeted commands:

Common economic commands:

Instant commands:

Transport commands:

Unusual commands:

Global commands:

State commands:

Modifiers

Commands can have their behaviour modified using ALT and CTRL.

Command Click behaviour Drag behaviour +ALT +CTRL
Repair
Repair a live unit; Assist construction Area command. Applies the click command to valid targets in the area, as long as there are any For area only. Persist the area even when no valid targets inside (continue if any new show up) Only repair live units, do not assist construction.
Mex
Build a mex at given spot Queue mexes across the area Surround each mex in the area with 4 solars. Works on already-built mexes. None.
Reclaim
Reclaim target (unit or feature) Reclaim features across the area. Area only. Persist the command even when no features are in the area. Area only. If centered on a live unit, reclaim all units of this type in the area. Else, ignore metal-less features, such as trees. There is a menu option to do this by default, in which case trees can be reclaimed either with CTRL or by centering the area on a tree.
Resurrect
Resurrect target wreck Area version. Resurrect wrecks in given area as long as there are any; ignore ones that are partially reclaimed. Area only. Persist the command even when no resurrectables are in the area. Area only. Resurrect even partially reclaimed wrecks (but still not those actively being reclaimed - this requires single target command).