CaptureNearest
Jump to navigation
Jump to 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