backpackItems: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\| * )+\}\}" to "}}")
m (Text replacement - " {3,}\|" to " |")
Line 6: Line 6:


|gr1 = Containers
|gr1 = Containers


| Get array with all items (of any kind, even weapons) in backpack of the given unit.
| Get array with all items (of any kind, even weapons) in backpack of the given unit.

Revision as of 18:05, 18 January 2021

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:
uniformItemsvestItemsbackpackContainerfirstBackpackunitBackpackbackpackbackpackCargogetBackpackCargoaddBackpackaddBackpackCargoaddBackpackCargoGlobalremoveBackpackclearBackpackCargoclearBackpackCargoGlobalclearAllItemsFromBackpackloadBackpackbackpackSpaceForcanAddItemToBackpackaddItemToBackpackremoveItemFromBackpackeveryBackpack

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