everyBackpack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see aslo)
m (Some wiki formatting)
 
(57 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.04


|1.04|= Game version
|gr1= Containers
____________________________________________________________________________________________


| Returns array of backpacks stored in given crate or vehicle. Used for accessing backpack content of a backpack on ground. |= Description
|descr= Returns array of backpacks stored in given crate or vehicle. Used for accessing backpack content of a backpack on ground.
____________________________________________________________________________________________


| '''everyBackpack''' box |= Syntax
|s1= [[everyBackpack]] box


|p1= box: [[Object]] |= Parameter 1
|p1= box: [[Object]]
| [[Array]] |= RETURNVALUE


|r1= [[Array]]


|x1= <code>[[everyBackpack]] [[cursorTarget]];</code>|= EXAMPLE1
|x1= <sqf>everyBackpack cursorTarget;</sqf>


|x2= <code>_vehicleBackpacks = [[everyBackpack]] [[vehicle]] [[player]];</code>|= EXAMPLE2
|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]], [[unitBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpack]], [[addBackpackCargo]], [[addBackpackCargoGlobal]], [[removeBackpack]], [[clearBackpackCargo]], [[clearBackpackCargoGlobal]], [[clearAllItemsFromBackpack]], [[loadBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[addItemToBackpack]], [[removeItemFromBackpack]], [[backpackContainer]], [[everyContainer]] |= SEEALSO
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}


<h3 style='display:none'>Notes</h3>
{{Note
<dl class='command_description'>
|user= ffur2007slx2_5
<!-- Note Section BEGIN -->
|timestamp= 20140429170900
<dd class="notedate">Posted on Apr 29, 2014 - 17:09
|text= ({{arma3}} ver 1.16), here's a quick reference to backpack command family.
<dt class="note">'''[[User:ffur2007slx2_5|ffur2007slx2_5]]'''
{{{!}} class="wikitable sortable"
<dd class="note">
(ArmA3 ver 1.16), here's a quick reference to backpack command family.
{| class="wikitable sortable"


! Command
! Command
Line 42: Line 32:
! Example
! Example


|-
{{!}}-
| [[firstBackpack]]
{{!}} [[firstBackpack]]
| [[Object]](WeaponHolder, AmmoCrate, VehicleCrate)
{{!}} [[Object]] (WeaponHolder, AmmoCrate, VehicleCrate)
| [[Object]](eg 2bba9d00# 163957: backpack_compact.p3d)
{{!}} [[Object]] (e.g 2bba9d00# 163957: backpack_compact.p3d)
| [[firstBackpack]] ([[getPos]] [[player]] [[nearestObject]] "weaponholder")
{{!}} <sqf>firstBackpack (getPos player nearestObject "weaponholder");</sqf>


|-
{{!}}-
| [[backpackContainer]]
{{!}} [[backpackContainer]]
| Unit([[Object]])
{{!}} Unit([[Object]])
| [[Object]](eg 2bba9d00# 163957: backpack_compact.p3d)
{{!}} [[Object]] (e.g 2bba9d00# 163957: backpack_compact.p3d)
| [[backpackContainer]] [[player]] //Currently same as [[unitBackpack]]
{{!}} <sqf>backpackContainer player // currently same as [[unitBackpack]]</sqf>


|-
{{!}}-
| [[unitBackpack]]
{{!}} [[unitBackpack]]
| Unit([[Object]])
{{!}} Unit([[Object]])
| [[Object]](eg 2bba9d00# 163957: backpack_compact.p3d)
{{!}} [[Object]] (e.g 2bba9d00# 163957: backpack_compact.p3d)
| [[unitBackpack]] [[player]] //Currently same as [[backpackContainer]]
{{!}} <sqf>unitBackpack player // currently same as [[backpackContainer]]</sqf>


|-
{{!}}-
| [[backpack]]
{{!}} [[backpack]]
| Unit([[Object]])
{{!}} Unit([[Object]])
| [[String]](eg 2bba9d00# 163957: backpack_compact.p3d)
{{!}} [[String]] (e.g 2bba9d00# 163957: backpack_compact.p3d)
| [[backpack]] [[player]] //See also ([[typeOf]] [[backpackContainer]] [[player]]) or ([[typeOf]] [[unitBackpack]] [[player]])
{{!}} <sqf>backpack player // see also ([[typeOf]] [[backpackContainer]] [[player]]) or ([[typeOf]] [[unitBackpack]] [[player]])</sqf>


|-
{{!}}-
| [[backpackCargo]]
{{!}} [[backpackCargo]]
| [[Object]](WeaponHolder, AmmoCrate, VehicleCrate)
{{!}} [[Object]] (WeaponHolder, AmmoCrate, VehicleCrate)
| [[Array]] of [[String]](eg ["Backpack0","Backpack1"])
{{!}} [[Array]] of [[String]] (e.g ["Backpack0", "Backpack1"])
| [[backpackCargo]] _AmmoCrate
{{!}} <sqf>backpackCargo _ammoCrate</sqf>


|-
{{!}}-
| [[getBackpackCargo]]
{{!}} [[getBackpackCargo]]
| [[Object]](WeaponHolder, AmmoCrate, VehicleCrate)
{{!}} [[Object]] (WeaponHolder, AmmoCrate, VehicleCrate)
| [[Array]] of [[Array]](eg [["Backpack0","Backpack1"],[1,1]])
{{!}} [[Array]] of [[Array]] (e.g [["Backpack0", "Backpack1"], [1, 1]])
| [[getBackpackCargo]] _AmmoCrate
{{!}} <sqf>getBackpackCargo _ammoCrate</sqf>


|-
{{!}}-
| [[everyBackpack]]
{{!}} [[everyBackpack]]
| [[Object]](WeaponHolder, AmmoCrate, VehicleCrate)
{{!}} [[Object]] (WeaponHolder, AmmoCrate, VehicleCrate)
| [[Array]] of [[Object]](eg [22504f00# 163960: backpack_fast.p3d...])
{{!}} [[Array]] of [[Object]] (e.g [22504f00# 163960: backpack_fast.p3d...])
| [[everyBackpack]] _AmmoCrate
{{!}} <sqf>everyBackpack _ammoCrate</sqf>


|}
{{!}}}
<!-- Note Section END -->
}}
</dl>
 
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 19:45, 7 April 2024

Hover & click on the images for description

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:
_vehicleBackpacks = everyBackpack vehicle player;

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
ffur2007slx2_5 - c
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 _ammoCrate
getBackpackCargo Object (WeaponHolder, AmmoCrate, VehicleCrate) Array of Array (e.g [["Backpack0", "Backpack1"], [1, 1]])
getBackpackCargo _ammoCrate
everyBackpack Object (WeaponHolder, AmmoCrate, VehicleCrate) Array of Object (e.g [22504f00# 163960: backpack_fast.p3d...])
everyBackpack _ammoCrate