CaptureNearest

From Ashes of the Singularity
Revision as of 11:04, 18 January 2017 by Dekludge (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The CaptureNearest command orders an army to clear its order queue and capture the nearest neutral or enemy-controlled region.

See also: CaptureNearestNext

Arguments

  • Name - The name of the unit to do the capturing
  • Repeat - Whether to repeat the order (indefinitely)

Common Usage

  • Causing an army to stop what it's doing and go capture something, in a trigger behind a logic gate tied to some specific event

Limitations

  • Can only order script-spawned units, not units built 'organically' during gameplay
  • The ordered unit will stop moving if region is captured before it gets there
  • Clears the order queue - cannot be combined with other commands like AttackAttackMove or MoveUnit