everyBackpack: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(45 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.04 | |||
| | |gr1= Containers | ||
| | |descr= Returns array of backpacks stored in given crate or vehicle. Used for accessing backpack content of a backpack on ground. | ||
|s1= [[everyBackpack]] box | |||
| [[everyBackpack]] box | |||
|p1= box: [[Object]] | |p1= box: [[Object]] | ||
| [[Array]] | |r1= [[Array]] | ||
|x1= < | |x1= <sqf>everyBackpack cursorTarget;</sqf> | ||
|x2= < | |x2= <sqf>_vehicleBackpacks = everyBackpack vehicle player;</sqf> | ||
|seealso= [[firstBackpack]] [[unitBackpack]] [[backpack]] [[backpackCargo]] [[getBackpackCargo]] [[backpackItems]] [[addBackpack]] [[addBackpackCargo]] [[addBackpackCargoGlobal]] [[removeBackpack]] [[clearBackpackCargo]] [[clearBackpackCargoGlobal]] [[clearAllItemsFromBackpack]] [[loadBackpack]] [[backpackSpaceFor]] [[canAddItemToBackpack]] [[addItemToBackpack]] [[removeItemFromBackpack]] [[backpackContainer]] [[everyContainer]] [[backpacks]] | |||
| [[firstBackpack]] | |||
}} | }} | ||
{{Note | |||
|user= ffur2007slx2_5 | |||
|timestamp= 20140429170900 | |||
|text= ({{arma3}} ver 1.16), here's a quick reference to backpack command family. | |||
{{{!}} class="wikitable sortable" | |||
( | |||
{ | |||
! Command | ! Command | ||
Line 41: | Line 32: | ||
! Example | ! Example | ||
{{!}}- | |||
{{!}} [[firstBackpack]] | |||
{{!}} [[Object]] (WeaponHolder, AmmoCrate, VehicleCrate) | |||
{{!}} [[Object]] (e.g 2bba9d00# 163957: backpack_compact.p3d) | |||
{{!}} <sqf>firstBackpack (getPos player nearestObject "weaponholder");</sqf> | |||
{{!}}- | |||
{{!}} [[backpackContainer]] | |||
{{!}} Unit([[Object]]) | |||
{{!}} [[Object]] (e.g 2bba9d00# 163957: backpack_compact.p3d) | |||
{{!}} <sqf>backpackContainer player // currently same as [[unitBackpack]]</sqf> | |||
{{!}}- | |||
{{!}} [[unitBackpack]] | |||
{{!}} Unit([[Object]]) | |||
{{!}} [[Object]] (e.g 2bba9d00# 163957: backpack_compact.p3d) | |||
{{!}} <sqf>unitBackpack player // currently same as [[backpackContainer]]</sqf> | |||
{{!}}- | |||
{{!}} [[backpack]] | |||
{{!}} Unit([[Object]]) | |||
{{!}} [[String]] (e.g 2bba9d00# 163957: backpack_compact.p3d) | |||
{{!}} <sqf>backpack player // see also ([[typeOf]] [[backpackContainer]] [[player]]) or ([[typeOf]] [[unitBackpack]] [[player]])</sqf> | |||
{{!}}- | |||
{{!}} [[backpackCargo]] | |||
{{!}} [[Object]] (WeaponHolder, AmmoCrate, VehicleCrate) | |||
{{!}} [[Array]] of [[String]] (e.g ["Backpack0", "Backpack1"]) | |||
{{!}} <sqf>backpackCargo _ammoCrate</sqf> | |||
{{!}}- | |||
{{!}} [[getBackpackCargo]] | |||
{{!}} [[Object]] (WeaponHolder, AmmoCrate, VehicleCrate) | |||
{{!}} [[Array]] of [[Array]] (e.g [["Backpack0", "Backpack1"], [1, 1]]) | |||
{{!}} <sqf>getBackpackCargo _ammoCrate</sqf> | |||
{{!}}- | |||
{{!}} [[everyBackpack]] | |||
{{!}} [[Object]] (WeaponHolder, AmmoCrate, VehicleCrate) | |||
{{!}} [[Array]] of [[Object]] (e.g [22504f00# 163960: backpack_fast.p3d...]) | |||
{{!}} <sqf>everyBackpack _ammoCrate</sqf> | |||
{{!}}} | |||
}} | |||
{{ | |||
Latest revision as of 19:45, 7 April 2024
Description
- Description:
- Returns array of backpacks stored in given crate or vehicle. Used for accessing backpack content of a backpack on ground.
- Groups:
- Containers
Syntax
- Syntax:
- everyBackpack box
- Parameters:
- box: Object
- Return Value:
- Array
Examples
- Example 1:
- everyBackpack cursorTarget;
- Example 2:
Additional Information
- See also:
- firstBackpack unitBackpack backpack backpackCargo getBackpackCargo backpackItems addBackpack addBackpackCargo addBackpackCargoGlobal removeBackpack clearBackpackCargo clearBackpackCargoGlobal clearAllItemsFromBackpack loadBackpack backpackSpaceFor canAddItemToBackpack addItemToBackpack removeItemFromBackpack backpackContainer everyContainer backpacks
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
- Posted on Apr 29, 2014 - 17:09 (UTC)
-
(Arma 3 ver 1.16), here's a quick reference to backpack command family.
Command Operand type Return Example firstBackpack Object (WeaponHolder, AmmoCrate, VehicleCrate) Object (e.g 2bba9d00# 163957: backpack_compact.p3d) backpackContainer Unit(Object) Object (e.g 2bba9d00# 163957: backpack_compact.p3d) unitBackpack Unit(Object) Object (e.g 2bba9d00# 163957: backpack_compact.p3d) backpack Unit(Object) String (e.g 2bba9d00# 163957: backpack_compact.p3d) backpackCargo Object (WeaponHolder, AmmoCrate, VehicleCrate) Array of String (e.g ["Backpack0", "Backpack1"]) backpackCargo _ammoCrategetBackpackCargo Object (WeaponHolder, AmmoCrate, VehicleCrate) Array of Array (e.g [["Backpack0", "Backpack1"], [1, 1]]) getBackpackCargo _ammoCrateeveryBackpack Object (WeaponHolder, AmmoCrate, VehicleCrate) Array of Object (e.g [22504f00# 163960: backpack_fast.p3d...]) everyBackpack _ammoCrate