backpackMagazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Some wiki formatting)
 
(34 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


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


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


____________________________________________________________________________________________
|seealso= [[uniformMagazines]] [[vestMagazines]] [[soldierMagazines]]
 
| [[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