"Scan horizon" is one of the most useful orders found in the Commanding Menu. It can be used both on foot and in vehicles to make the AI add some situational awareness to the group. Unfortunately, it is only available to groups that are being led by a player.
Making the exact same AI behaviour triggered by the "Scan horizon" Commanding Menu entry available in scripts would be useful for improving AI-led squads and to continuously rotate RCWS or tank turrets and AN/MPQ-105 or R-750 Cronus radars.
Currently, it is also not possible to stop the AI from scanning the horizon without ordering it to watch a certain direction - which it will then also do indefinitely.
As such, I believe the following collection of commands to be desirable:
- **scanHorizon**: `unit/array/group scanHorizon direction;` Where the //direction// parameter specifies the rotation direction (clockwise or counter clockwise).
- **commandScanHorizon**: Same as **scanHorizon** but with radio message.
- **stopScanHorizon**: `unit/array/group stopScanHorizon;`
- **commandStopScanHorizon**: Same as **stopScanHorizon** but with radio message.
- **isScanningHorizon**: `boolean = isScanningHorizon unit;`
Or, alternatively, a different syntax for **scanHorizon** and **commandScanHorizon**, so that the two dedicated **stopScanHorizon** and **commandStopScanHorizon** commands can be omitted:
```
unit/array/group scanHorizon [direction, value];
unit/array/group commandScanHorizon [direction, value];
```
Where //value// is a boolean (true to start scanning the horizon, false to stop scanning the horizon).