weaponCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|0.50|Game version=
|0.50


|gr1= Vehicle Inventory |GROUP1=
|gr1= Vehicle Inventory


|gr2= Unit Inventory |GROUP2=
|gr2= Unit Inventory


|gr3= Containers |GROUP3=
|gr3= Containers


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


| [[weaponCargo]] box |SYNTAX=
| [[weaponCargo]] box


|p1= box: [[Object]] |PARAMETER1=
|p1= box: [[Object]]


| [[Array]] of [[String]] - list of present classes |RETURNVALUE=
| [[Array]] of [[String]] - list of present classes


|x1= <code>[[hint]] [[str]] [[weaponCargo]] [[backpackContainer]] [[player]];</code>|EXAMPLE1=
|x1= <code>[[hint]] [[str]] [[weaponCargo]] [[backpackContainer]] [[player]];</code>




| [[getWeaponCargo]], [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[clearWeaponCargo]], [[clearWeaponCargoGlobal]], [[magazineCargo]], [[itemCargo]] |SEEALSO=
| [[getWeaponCargo]], [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[clearWeaponCargo]], [[clearWeaponCargoGlobal]], [[magazineCargo]], [[itemCargo]]
}}
}}



Revision as of 11:40, 18 January 2021

Hover & click on the images for description

Description

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

Syntax

Syntax:
weaponCargo box
Parameters:
box: Object
Return Value:
Array of String - list of present classes

Examples

Example 1:
hint str weaponCargo backpackContainer player;

Additional Information

See also:
getWeaponCargoaddWeaponCargoaddWeaponCargoGlobalclearWeaponCargoclearWeaponCargoGlobalmagazineCargoitemCargo

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