Difference between revisions of "DCS Class Unit"
From DCS World Wiki - Hoggitworld.com
(One intermediate revision 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 = 0, | AIRPLANE = 0, | ||
Line 68: | Line 68: | ||
}} | }} | ||
+ | [[Category:Game Patch 1.2.0|Unit Class]] |