backpackItems

From Bohemia Interactive Community
Revision as of 10:21, 13 May 2022 by Lou Montana (talk | contribs) (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Get array with all items (of any kind, even weapons) in backpack of the given unit.
Groups:
Containers

Syntax

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

Examples

Example 1:
backpackItems player; // returns e.g ["hgun_P07_F", "Titan_AT"]

Additional Information

See also:
uniformItems vestItems backpackContainer firstBackpack unitBackpack backpack backpackCargo getBackpackCargo addBackpack addBackpackCargo addBackpackCargoGlobal removeBackpack clearBackpackCargo clearBackpackCargoGlobal clearAllItemsFromBackpack loadBackpack backpackSpaceFor canAddItemToBackpack addItemToBackpack removeItemFromBackpack 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