backpacks: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - " |version1= 2.14 |branch= dev" to " |version1= 2.14")
 
(4 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.14
|version1= 2.14
|branch= dev


|arg=  
|arg= global


|gr1= Unit Inventory
|gr1= Unit Inventory


|descr= Returns an array of all backpacks names unit has in inventory, excluding backpack unit wears.
|descr= Returns an array of all backpack names a unit has in its inventory, excluding the one it carries on the back.


|s1= [[backpacks]] unit
|s1= [[backpacks]] unit
Line 17: Line 16:
|r1= [[Array]]
|r1= [[Array]]


|x1= <sqf>_itemsPlayer = backpacks player;</sqf>
|x1= <sqf>private _allCarriedBackpackTypes = backpacks player + [backpack player];</sqf>
 
|x2= <sqf>player sideChat format ["%1", backpacks player];</sqf>


|seealso= [[backpack]] [[itemsWithMagazines]] [[assignedItems]] [[items]] [[magazines]] [[everyBackpack]]  
|seealso= [[backpack]] [[itemsWithMagazines]] [[assignedItems]] [[items]] [[magazines]] [[everyBackpack]]  
}}
}}

Latest revision as of 17:49, 5 September 2023

Hover & click on the images for description

Description

Description:
Returns an array of all backpack names a unit has in its inventory, excluding the one it carries on the back.
Groups:
Unit Inventory

Syntax

Syntax:
backpacks unit
Parameters:
unit: Object
Return Value:
Array

Examples

Example 1:
private _allCarriedBackpackTypes = backpacks player + [backpack player];

Additional Information

See also:
backpack itemsWithMagazines assignedItems items magazines everyBackpack

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