Page MenuHomeFeedback Tracker

Request: scanHorizon command family
New, NormalPublic

Description

"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).

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

ansin11 created this task.Jul 27 2020, 2:19 AM
h- added a subscriber: h-.Jul 27 2020, 6:31 AM
ansin11 updated the task description. (Show Details)Jul 27 2020, 8:54 AM
Leopard20 added a subscriber: Leopard20.EditedJul 27 2020, 9:47 AM

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.

Yes it is. Order them to "Cancel Target" (No Target). You can also do this in scripts using: _unit doWatch objNull. They will continue to watch whatever direction they want (this command clears all of their 'targeting' parameters, including doTarget, lookAt, scan horizon, etc.)

ansin11 updated the task description. (Show Details)EditedJul 27 2020, 2:37 PM

Updated the relevant part @Leopard20.

This comment was removed by dedmen.
This comment was removed by dedmen.
This comment was removed by dedmen.
dedmen added a subscriber: dedmen.Apr 24 2021, 6:07 PM

Maybe name it doScanHorizon instead, to stay with the theme of doX/commandX

This comment was removed by BIS_fnc_KK.