gearSlotAmmoCount: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\|= * " to " ")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2oa |Game name=
| arma2oa


|1.62|Game version= <!-- First mentioned in TOH patch notes. -->
|1.62|Game version= <!-- First mentioned in TOH patch notes. -->


|gr1= Unit Inventory |GROUP1=
|gr1= Unit Inventory


|gr2= GUI Control |GROUP2=
|gr2= GUI Control


| Returns ammo count of assigned magazine. |DESCRIPTION=
| Returns ammo count of assigned magazine.


| [[gearSlotAmmoCount]] control|SYNTAX=
| [[gearSlotAmmoCount]] control


|p1= control: [[Control]] - CT_ITEMSLOT 103
|p1= control: [[Control]] - CT_ITEMSLOT 103




| [[Number]] |RETURNVALUE=
| [[Number]]




|x1= <code>ammo = [[gearSlotAmmoCount]] _control;</code>|EXAMPLE1=
|x1= <code>ammo = [[gearSlotAmmoCount]] _control;</code>




|[[gearSlotData]], [[gearIDCAmmoCount]] |SEEALSO=
|[[gearSlotData]], [[gearIDCAmmoCount]]


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 00:33, 18 January 2021

Hover & click on the images for description

Description

Description:
Returns ammo count of assigned magazine.
Groups:
Unit InventoryGUI Control

Syntax

Syntax:
gearSlotAmmoCount control
Parameters:
control: Control - CT_ITEMSLOT 103
Return Value:
Number

Examples

Example 1:
ammo = gearSlotAmmoCount _control;

Additional Information

See also:
gearSlotDatagearIDCAmmoCount

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

Notes

Bottom Section