everyBackpack: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Comments" to "|Comments=") |
Lou Montana (talk | contribs) |
||
Line 10: | Line 10: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[everyBackpack]] box |SYNTAX= | ||
|p1= box: [[Object]] |PARAMETER1= | |p1= box: [[Object]] |PARAMETER1= | ||
| [[Array]] |RETURNVALUE= | | [[Array]] |RETURNVALUE= | ||
|x1= <code>[[everyBackpack]] [[cursorTarget]];</code>|EXAMPLE1= | |x1= <code>[[everyBackpack]] [[cursorTarget]];</code>|EXAMPLE1= | ||
Line 24: | Line 24: | ||
| [[firstBackpack]], [[unitBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpack]], [[addBackpackCargo]], [[addBackpackCargoGlobal]], [[removeBackpack]], [[clearBackpackCargo]], [[clearBackpackCargoGlobal]], [[clearAllItemsFromBackpack]], [[loadBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[addItemToBackpack]], [[removeItemFromBackpack]], [[backpackContainer]], [[everyContainer]] |SEEALSO= | | [[firstBackpack]], [[unitBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpack]], [[addBackpackCargo]], [[addBackpackCargoGlobal]], [[removeBackpack]], [[clearBackpackCargo]], [[clearBackpackCargoGlobal]], [[clearAllItemsFromBackpack]], [[loadBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[addItemToBackpack]], [[removeItemFromBackpack]], [[backpackContainer]], [[everyContainer]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Line 89: | Line 88: | ||
<h3 style='display:none'>Bottom Section</h3> | <h3 style='display:none'>Bottom Section</h3> | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command Group: Containers|{{uc:{{PAGENAME}}}}]] |
Revision as of 00:21, 25 November 2019
Description
- Description:
- Returns array of backpacks stored in given crate or vehicle. Used for accessing backpack content of a backpack on ground.
- Groups:
- Uncategorised
Syntax
- Syntax:
- everyBackpack box
- Parameters:
- box: Object
- Return Value:
- Array
Examples
- Example 1:
everyBackpack cursorTarget;
- Example 2:
_vehicleBackpacks = everyBackpack vehicle player;
Additional Information
- See also:
- firstBackpackunitBackpackbackpackbackpackCargogetBackpackCargobackpackItemsaddBackpackaddBackpackCargoaddBackpackCargoGlobalremoveBackpackclearBackpackCargoclearBackpackCargoGlobalclearAllItemsFromBackpackloadBackpackbackpackSpaceForcanAddItemToBackpackaddItemToBackpackremoveItemFromBackpackbackpackContainereveryContainer
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
Notes
- Posted on Apr 29, 2014 - 17:09
- ffur2007slx2_5
-
(ArmA3 ver 1.16), here's a quick reference to backpack command family.
Command Operand type Return Example firstBackpack Object(WeaponHolder, AmmoCrate, VehicleCrate) Object(eg 2bba9d00# 163957: backpack_compact.p3d) firstBackpack (getPos player nearestObject "weaponholder") backpackContainer Unit(Object) Object(eg 2bba9d00# 163957: backpack_compact.p3d) backpackContainer player //Currently same as unitBackpack unitBackpack Unit(Object) Object(eg 2bba9d00# 163957: backpack_compact.p3d) unitBackpack player //Currently same as backpackContainer backpack Unit(Object) String(eg 2bba9d00# 163957: backpack_compact.p3d) backpack player //See also (typeOf backpackContainer player) or (typeOf unitBackpack player) backpackCargo Object(WeaponHolder, AmmoCrate, VehicleCrate) Array of String(eg ["Backpack0","Backpack1"]) backpackCargo _AmmoCrate getBackpackCargo Object(WeaponHolder, AmmoCrate, VehicleCrate) Array of Array(eg [["Backpack0","Backpack1"],[1,1]]) getBackpackCargo _AmmoCrate everyBackpack Object(WeaponHolder, AmmoCrate, VehicleCrate) Array of Object(eg [22504f00# 163960: backpack_fast.p3d...]) everyBackpack _AmmoCrate