DCS Class Unit: Difference between revisions
From DCS World Wiki - Hoggitworld.com
m 1 revision imported |
No edit summary |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 10: | Line 10: | ||
|desc= Represents units: airplanes, helicopters, vehicles, ships and armed ground structures. | |desc= Represents units: airplanes, helicopters, vehicles, ships and armed ground structures. | ||
|type= enumerator for Unit categories | |type= enumerator for Unit categories.<br/>Note that Unit.Category values are <u>not</u> obtained by calling ''unit'':getCategory() - that calls Object.getCategory(''unit'') and will <u>always</u> return the value Object.Category.UNIT. Instead you need to use ''unit'':getDesc().category to find the Unit.Category! | ||
Unit.Category = { | Unit.Category = { | ||
AIRPLANE, | AIRPLANE = 0, | ||
HELICOPTER, | HELICOPTER = 1, | ||
GROUND_UNIT, | GROUND_UNIT = 2, | ||
SHIP, | SHIP = 3, | ||
STRUCTURE | STRUCTURE = 4 | ||
} | } | ||
Refueling system | Refueling system | ||
Unit.RefuelingSystem = { | Unit.RefuelingSystem = { | ||
BOOM_AND_RECEPTACLE, | BOOM_AND_RECEPTACLE = 0, | ||
PROBE_AND_DROGUE | PROBE_AND_DROGUE = 1 | ||
} | } | ||
| Line 28: | Line 28: | ||
Unit.SensorType = { | Unit.SensorType = { | ||
OPTIC, | OPTIC = 0, | ||
RADAR, | RADAR = 1, | ||
IRST, | IRST = 2, | ||
RWR | RWR = 3 | ||
} | } | ||
Optic Types | Optic Types | ||
Unit.OpticType = { | Unit.OpticType = { | ||
TV, --TV-sensor | TV = 0, --TV-sensor | ||
LLTV, --Low-level TV-sensor | LLTV = 1, --Low-level TV-sensor | ||
IR --Infra-Red optic sensor | IR = 2 --Infra-Red optic sensor | ||
} | } | ||
| Line 44: | Line 44: | ||
Unit.RadarType = { | Unit.RadarType = { | ||
AS, --air search radar | AS = 0, --air search radar | ||
SS --surface/land search radar | SS = 1 --surface/land search radar | ||
} | } | ||
|structures= | |structures= | ||
| Line 68: | Line 68: | ||
}} | }} | ||
[[Category:Game Patch 1.2.0|Unit Class]] | |||
