Returns the unit's callsign - the localized string.
Returns relative amount of fuel (from 0.0 to 1.0) the unit has in its internal tanks.
If there are additional fuel tanks the value may be greater than 1.0.
Returns the unit's health.
Dead units has health <= 1.0
returns the unit's initial health.
Returns the unit's number in the group.
The number is the same number the unit has in ME. It may not be changed during the mission. If any unit in the group is destroyed, the numbers of another units will not be changed.
Returns name of the player that control the unit or nil if the unit is controlled by A.I.
Returns true if the unit has specified types of sensors.
This function is more preferable than Unit.getSensors() if you don't want to get information about all the unit's sensors, and just want to check if the unit has specified types of sensors.
(= nil) Sensor type.
If sensorType is Unit.SensorType.OPTIC, additional parameters are optic sensor types. Following example checks if the unit has LLTV or IR optics: unit:hasSensors(Unit.SensorType.OPTIC, Unit.OpticType.LLTV, Unit.OpticType.IR) If sensorType is Unit.SensorType.RADAR, additional parameters are radar types. Following example checks if the unit has air search radars: unit:hasSensors(Unit.SensorType.RADAR, Unit.RadarType.AS) If no additional parameters are specified the function returns true if the unit has at least one sensor of specified type. If sensor type is not specified the function returns true if the unit has at least one sensor of any type.
Returns if the unit is activated.