backpackMagazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.12|= Game version _________________...")
 
m (Some wiki formatting)
 
(40 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 0.50


|1.12|= Game version
|gr1= Containers
____________________________________________________________________________________________


| Get array with all magazines from backpack of the given unit. |= Description
|gr2= Unit Inventory
____________________________________________________________________________________________


| '''backpackMagazines''' unit |= Syntax
|descr= Get array with all magazines from backpack of the given unit.


|p1= unit : [[Object]] |=
|s1= [[backpackMagazines]] unit


| [[Array]] |= RETURNVALUE
|p1= unit: [[Object]]


|r1= [[Array]] of [[String]]


|x1= <code>backpackMagazines player;</code>|= EXAMPLE1
|x1= <sqf>
backpackMagazines player;
// returns e.g
/*
[
"Titan AT Missile(1/1)[id/cr:16/0](2x)"
]
*/
</sqf>


____________________________________________________________________________________________
|seealso= [[uniformMagazines]] [[vestMagazines]] [[soldierMagazines]]
 
|  |= SEEALSO
 
|= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<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}}}}]]

Latest revision as of 12:03, 14 May 2022

Hover & click on the images for description

Description

Description:
Get array with all magazines from backpack of the given unit.
Groups:
ContainersUnit Inventory

Syntax

Syntax:
backpackMagazines unit
Parameters:
unit: Object
Return Value:
Array of String

Examples

Example 1:
backpackMagazines player; // returns e.g /* [ "Titan AT Missile(1/1)[id/cr:16/0](2x)" ] */

Additional Information

See also:
uniformMagazines vestMagazines soldierMagazines

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