Difference between revisions of "DCS func getDetectedTargets"

From DCS World Wiki - Hoggitworld.com
 
Line 3: Line 3:
 
|fName= getDetectedTargets
 
|fName= getDetectedTargets
  
|vNum= 1.2.4
+
|vNum= 1.2.6
  
 
|par1= [[DCS_Class_Controller|Controller]]
 
|par1= [[DCS_Class_Controller|Controller]]
Line 63: Line 63:
 
}}
 
}}
 
[[Category:Class Functions|getDetectedTargets]]
 
[[Category:Class Functions|getDetectedTargets]]
 +
[[Category:Game Patch 1.2.6|getDetectedTargets]]

Latest revision as of 23:07, 17 March 2022

Scripting Root

Envrioment: Mission Scripting
Function: getDetectedTargets Added with: 1.2.6
Member Of: Controller
Syntax: table Controller.getDetectedTargets(Class self , enum detectionType1, enum detectionType2, enum detectionType3 ...)
Description: Returns a table of detected targets that are detected by the different detection methods. If not detection method is specified, then all forms of detection will be used.


Return Value: table
Return Example: Returns a table of detected targets
DetectedTarget = {
  object = Object, --the target
  visible = boolean, --the target is visible
  type = boolean, --the target type is known
  distance = boolean --distance to the target is known

Applies only to a Unit Controller. Cannot be used at the group level.

Examples:
Related Functions: Controller: setTask, resetTask, pushTask, popTask, hasTask, setCommand, setOption, setOnOff, setAltitude, setSpeed, knowTarget, isTargetDetected, getDetectedTargets
Notes: Detection Types
Conroller.Detection = {  
  VISUAL = 1,
  OPTIC  = 2,
  RADAR  = 4,
  IRST   = 8,
  RWR    = 16,
  DLINK  = 32
}