Patrol is a new command in GAE using existing skills. It allows the unit to walk back and forth between a chosen location, attacking foes that may appear. This makes it useful for patrolling a large area to prevent attack. Patrol can be set to patrol to a unit, in which case it will walk between that unit and its starting location. If the unit dies, it goes to the location it last was.
<command> <type value="patrol"/> <name value="patrol"/> <image path="icon.bmp"/> <unit-requirements/> <upgrade-requirements/> <move-skill value="move_skill"/> <attack-skill value="attack_skill"/> <max-distance value="3"/> </command>
The type of the command, in this case, patrol.
The name of the command, as seen ingame. GAE can translate these with separate language files as well.
Path to the image which will be used as an icon to initiate the command.
A list of units that must exist before this command can be used. For example, you might have to construct a testing lab before you can start throwing grenades.
A list of upgrades that must exist before this command can be used. For example, you might have to perform a training field upgrade before you could use a more advanced skill.
The name of the move skill to use.
The name of the attack skill to use.
Max-distance is the maximum distance the target can be from its destination before it turns around.