gearIDCAmmoCount: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2oa |Game name= | | arma2oa |Game name= | ||
|1.62|Game version= <!-- First mentioned in TOH patch notes. --> | |1.62|Game version= <!-- First mentioned in TOH patch notes. --> | ||
| Returns ammo count of assigned magazine. |DESCRIPTION= | | Returns ammo count of assigned magazine. |DESCRIPTION= | ||
Line 12: | Line 10: | ||
|gr2= GUI Control |GROUP2= | |gr2= GUI Control |GROUP2= | ||
| [[gearIDCAmmoCount]] idc|SYNTAX= | | [[gearIDCAmmoCount]] idc|SYNTAX= | ||
Line 23: | Line 20: | ||
|x1= <code>ammo = [[gearIDCAmmoCount]] _control;</code>|EXAMPLE1= | |x1= <code>ammo = [[gearIDCAmmoCount]] _control;</code>|EXAMPLE1= | ||
|[[gearSlotData]], [[gearSlotAmmoCount]]|SEEALSO= | |[[gearSlotData]], [[gearSlotAmmoCount]]|SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 01:13, 17 January 2021
Description
- Description:
- Returns ammo count of assigned magazine.
- Groups:
- Unit InventoryGUI Control
Syntax
- Syntax:
- gearIDCAmmoCount idc
- Parameters:
- idc: Number - idc of control type CT_ITEMSLOT 103
- Return Value:
- Number
Examples
- Example 1:
ammo = gearIDCAmmoCount _control;
Additional Information
- See also:
- gearSlotDatagearSlotAmmoCount
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note