DCS func hasSensors

From DCS World Wiki - Hoggitworld.com
Revision as of 00:12, 12 April 2018 by Grimes (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Scripting Root

Envrioment: Mission Scripting
Function: hasSensors Added with: 1.2.0
Member Of: Unit
Syntax: boolean Unit.hasSensors(Class Self , enum SensorType, enum SubCategory)
Description: Returns true if the unit has the specified sensors. If SensorType is not specified the function will return true if the unit has any type of sensors.

Some sensorTypes have additional subcategories which can be used to further specify for certain sensors.

For all sensor information please check the article on sensor enumerators for more details.

Return Value: boolean
Return Example: true or false
Related Functions: Unit Functions: isActive, getPlayerName, getID, getNumber, getController, getGroup, getCallsign, getLife, getLife0, getFuel, getAmmo, getSensors, hasSensors, getRadar, getDrawArgumentValue, getNearestCargos, enableEmission, getDescentCapacity

Object Functions: isExist, destroy, getCategory, getTypeName, getDesc, hasAttribute, getName, getPoint, getPosition, getVelocity, inAir

Coalition Object Functions: getCoalition, getCountry