magazineCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 9: Line 8:


|gr2= Containers |GROUP2=
|gr2= Containers |GROUP2=
____________________________________________________________________________________________


| Get array with magazines from ammo box (or any general weapon holder container).  |DESCRIPTION=
| Get array with magazines from ammo box (or any general weapon holder container).  |DESCRIPTION=
____________________________________________________________________________________________


| '''magazineCargo''' object |SYNTAX=
| '''magazineCargo''' object |SYNTAX=
Line 23: Line 20:
|x1= <code>[[hint]] [[str]] [[magazineCargo]] [[uniformContainer]] [[cursorTarget]];</code>|EXAMPLE1=  
|x1= <code>[[hint]] [[str]] [[magazineCargo]] [[uniformContainer]] [[cursorTarget]];</code>|EXAMPLE1=  


____________________________________________________________________________________________


| [[magazinesAmmoCargo]], [[getMagazineCargo]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[clearMagazineCargo]], [[clearMagazineCargoGlobal]] [[weaponCargo]], [[itemCargo]] |SEEALSO=  
| [[magazinesAmmoCargo]], [[getMagazineCargo]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[clearMagazineCargo]], [[clearMagazineCargoGlobal]] [[weaponCargo]], [[itemCargo]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 02:59, 17 January 2021

Hover & click on the images for description

Description

Description:
Get array with magazines from ammo box (or any general weapon holder container).
Groups:
Vehicle InventoryContainers

Syntax

Syntax:
magazineCargo object
Parameters:
object: Object - Vehicle or ammo box
Return Value:
Array - Format: ["MagType1","MagType1","MagType2"...]

Examples

Example 1:
hint str magazineCargo uniformContainer cursorTarget;

Additional Information

See also:
magazinesAmmoCargogetMagazineCargoaddMagazineCargoaddMagazineCargoGlobalclearMagazineCargoclearMagazineCargoGlobal weaponCargoitemCargo

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