CaptureNearest

From Ashes of the Singularity - Official Wiki
Revision as of 21:04, 18 January 2017 by Patiobattle04 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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