backpacks: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - " |version1= 2.14 |branch= dev" to " |version1= 2.14")
mNo edit summary
 
Line 14: Line 14:
|p1= unit: [[Object]]
|p1= unit: [[Object]]


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


|x1= <sqf>private _allCarriedBackpackTypes = backpacks player + [backpack player];</sqf>
|x1= <sqf>private _allCarriedBackpackTypes = backpacks player + [backpack player];</sqf>

Latest revision as of 11:53, 1 January 2026

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 of Strings

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.
Only post proven facts here! Add Note