weaponCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
m (Fixed returned value)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


| [[Array]] - Format: ["WeaponType1", "WeaponType1", "WeaponType2"...]|RETURNVALUE=  
| [[Array]] of [[String]] - list of present classes |RETURNVALUE=  
 


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


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


Line 35: Line 31:


<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 21:57, 28 April 2020

Hover & click on the images for description

Description

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

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