DCS Class Weapon: Difference between revisions
From DCS World Wiki - Hoggitworld.com
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
|desc= Represents a weapon object: shell, rocket, missile and bomb | |desc= Represents a weapon object: shell, rocket, missile and bomb | ||
|type= [[DCS_enum_weapon|Weapon | |type= [[DCS_enum_weapon|Weapon.flag]] is a complex enumerator used to describe the type of weapon. Information can be found on the linked page because it is a headache to summarize quickly. | ||
<br/>Note that Weapon.Category values are <u>not</u> obtained by calling ''weapon'':getCategory() - that calls Object.getCategory(''weapon'') and will <u>always</u> return the value Object.Category.WEAPON. Instead you need to use ''weapon'':getDesc().category to find the Weapon.Category! | |||
{{DCS_enum_weapon_category}} | {{DCS_enum_weapon_category}} | ||
