backpackItems: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
(40 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | | |game1= arma3 | ||
|version1= 0.50 | |||
| | |gr1= Containers | ||
| Get array with all items (of any kind, even weapons) in backpack of the given unit. | |descr= Get array with all items (of any kind, even weapons) in backpack of the given unit. | ||
| [[backpackItems]] unit | |s1= [[backpackItems]] unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
| [[Array]] | |r1= [[Array]] | ||
|x1= < | |x1= <sqf>backpackItems player; // returns e.g ["hgun_P07_F", "Titan_AT"]</sqf> | ||
| [[uniformItems]] | |seealso= [[uniformItems]] [[vestItems]] [[backpackContainer]] [[firstBackpack]] [[unitBackpack]] [[backpack]] [[backpackCargo]] [[getBackpackCargo]] [[addBackpack]] [[addBackpackCargo]] [[addBackpackCargoGlobal]] [[removeBackpack]] [[clearBackpackCargo]] [[clearBackpackCargoGlobal]] [[clearAllItemsFromBackpack]] [[loadBackpack]] [[backpackSpaceFor]] [[canAddItemToBackpack]] [[addItemToBackpack]] [[removeItemFromBackpack]] [[everyBackpack]] | ||
}} | }} | ||
Latest revision as of 10:21, 13 May 2022
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:
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