Arma 3 Scripting

Command in Unit Inventory

backpacks

Also available as Markdown and JSON, or read the original wiki page.

Description

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

Syntax

backpacks unit

Parameters:

Returns: Array of Strings

Examples

Example 1

private _allCarriedBackpackTypes = backpacks player + [backpack player];

See also

backpack · itemsWithMagazines · assignedItems · items · magazines · everyBackpack