DCS Class Controller

From DCS World Wiki - Hoggitworld.com

Scripting Root

Class Name: Controller Added with: 1.2.0
Extends: none
Inherits: none
Description: Controller is an object that performs AI-routines. In other words a controller is an instance of the AI. Controller stores the current main task, active enroute tasks, and behavior options. Controllers also can perform commands. Controllers exist at both a group and unit level. However only planes and helicopters can be controlled individually at a unit level. Some functions can only work for Unit Controllers.

Different tasks, options, and commands are available for the different group types. (Plane, Helicopter, Ground Unit, and Ship). See the linked articles on these subjects for more information.

Member Functions: setTask, resetTask, pushTask, popTask, hasTask, setCommand, setOption, setOnOff, knowTarget, isTargetDetected, getDetectedTargets
Obtained Via: Static Functions Functions Events
Enumerator Types: Detection Types
  OPTIC   2
  RADAR   4
  IRST    8
  RWR     16
  DLINK   32
Description Table Structure: