DCS Class Weapon: Difference between revisions
From DCS World Wiki - Hoggitworld.com
m 1 revision imported |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 2: | Line 2: | ||
|cName= Weapon | |cName= Weapon | ||
|vNum= 1.2. | |vNum= 1.2.4 | ||
|xVar= | |xVar= | ||
| 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}} | ||
| Line 84: | Line 84: | ||
}} | }} | ||
[[Category:Game Patch 1.2.4|Weapon Class]] | |||
