Controller.Detection = { VISUAL, OPTIC, RADAR, IRST, RWR, DLINK }
enum contains identifiers of surface types.
function boolean detected, boolean visible, ModelTime lastTime, boolean type, boolean distance, Vec3 lastPos, Vec3 lastVel, Controller.isTargetDetected(Controller self, Object target, [Controller.Detection detection1, Controller.Detection detection2, ... Controller.Detection detectionN] or nil)
checks if the target is detected or not. If one or more detection method is specified the function will return true if the target is detected by at least one of these methods. If no detection methods are specified the function will return true if the target is detected by any method.
target
detection1 - detectionN
Return values:
detected
visible
type
distance
lastTime
lastPos
lastVel
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 }
detected target.
DetectedTargets = array of DetectedTarget
list of detected targets.
function array DetectedTargets Controller.getDetectedTargets(Controller self, [Controller.Detection detection1, Controller.Detection detection2, ... Controller.Detection detectionN] or nil)
returns list of detected targets. If one or more detection method is specified the function will return targets which were detected by at least one of these methods. If no detection methods are specified the function will return targets which were detected by any method.
detection1 - detectionN
function Controller.knowTarget(Controller self, Object object, boolean type, boolean distance)
object
type
distance