everyBackpack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
Line 21: Line 21:
}}
}}


<dl class="command_description">
{{Note
 
|user= ffur2007slx2_5
<dt></dt>
|timestamp= 20140429170900
<dd class="notedate">Posted on Apr 29, 2014 - 17:09</dd>
|text= ({{arma3}} ver 1.16), here's a quick reference to backpack command family.
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]</dt>
{{{!}} 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 35: Line 32:
! Example
! Example


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


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


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


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


|-
{{!}}-
| [[backpackCargo]]
{{!}} [[backpackCargo]]
| [[Object]](WeaponHolder, AmmoCrate, VehicleCrate)
{{!}} [[Object]](WeaponHolder, AmmoCrate, VehicleCrate)
| [[Array]] of [[String]](eg ["Backpack0","Backpack1"])
{{!}} [[Array]] of [[String]](eg ["Backpack0","Backpack1"])
| [[backpackCargo]] _AmmoCrate
{{!}} [[backpackCargo]] _AmmoCrate


|-
{{!}}-
| [[getBackpackCargo]]
{{!}} [[getBackpackCargo]]
| [[Object]](WeaponHolder, AmmoCrate, VehicleCrate)
{{!}} [[Object]](WeaponHolder, AmmoCrate, VehicleCrate)
| [[Array]] of [[Array]](eg [["Backpack0","Backpack1"],[1,1]])
{{!}} [[Array]] of [[Array]](eg [["Backpack0","Backpack1"],[1,1]])
| [[getBackpackCargo]] _AmmoCrate
{{!}} [[getBackpackCargo]] _AmmoCrate


|-
{{!}}-
| [[everyBackpack]]
{{!}} [[everyBackpack]]
| [[Object]](WeaponHolder, AmmoCrate, VehicleCrate)
{{!}} [[Object]](WeaponHolder, AmmoCrate, VehicleCrate)
| [[Array]] of [[Object]](eg [22504f00# 163960: backpack_fast.p3d...])
{{!}} [[Array]] of [[Object]](eg [22504f00# 163960: backpack_fast.p3d...])
| [[everyBackpack]] _AmmoCrate
{{!}} [[everyBackpack]] _AmmoCrate


|}
{{!}}}
</dl>
}}

Revision as of 23:26, 13 May 2023

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(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