Difference between revisions of "DCS Class Unit"
From DCS World Wiki - Hoggitworld.com
m (1 revision imported) |
(No difference)
|
m (1 revision imported) |
(No difference)
|
| Class Name: | Unit | Added with: 1.2.0 | |
| Extends: | |||
| Inherits: | Object, Coalition Object | ||
| Description: | Represents units: airplanes, helicopters, vehicles, ships and armed ground structures. | ||
| Member Functions: | isActive, getPlayerName, getID, getNumber, getCategoryEx, getObjectID, getController, getGroup, getCallsign, getLife, getLife0, getFuel, getAmmo, getSensors, hasSensors, getRadar, getDrawArgumentValue, getNearestCargos, enableEmission, getDescentCapacity
Inherited from Object Class: isExist, destroy, getCategory, getTypeName, getDesc, hasAttribute, getName, getPoint, getPosition, getVelocity, inAir Inherited from Coalition Object Class: getCoalition, getCountry | ||
| Obtained Via: | Static Functions | Functions | Events |
| Unit.getByName | Group Class Functions: getUnits, getUnit | shot, hit, takeoff, land, crash, ejection, refueling, dead, pilot_dead, base_captured, refueling_stop, birth, human_failure, engine_startup, engine_shutdown, player_enter_unit, player_leave_unit, shooting_start, shooting_end | |
| Enumerator Types: | enumerator for Unit categories
Unit.Category = {
AIRPLANE,
HELICOPTER,
GROUND_UNIT,
SHIP,
STRUCTURE
}
Refueling system Unit.RefuelingSystem = {
BOOM_AND_RECEPTACLE,
PROBE_AND_DROGUE
}
Sensor Types Unit.SensorType = {
OPTIC,
RADAR,
IRST,
RWR
}
Optic Types Unit.OpticType = {
TV, --TV-sensor
LLTV, --Low-level TV-sensor
IR --Infra-Red optic sensor
}
Radar Types Unit.RadarType = {
AS, --air search radar
SS --surface/land search radar
}
| ||
| Description Table Structure: | |||
| Notes: | |||