unitBackpack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also modified & add new note & delete an old note whose workaround can be done just via backpack)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns unit's backpack |= Description
| Returns unit's backpack |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''unitBackpack''' unit|= Syntax
| '''unitBackpack''' unit|SYNTAX=


|p1= unit: [[Object]] |= Parameter 1
|p1= unit: [[Object]] |PARAMETER1=


| [[Object]] |= Return value
| [[Object]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>myBackpack = unitBackpack player</pre> |= Example 1
|x1= <pre>myBackpack = unitBackpack player</pre> |EXAMPLE1=
|x2= <pre>clearMagazineCargo unitBackpack player</pre> |= Example 2
|x2= <pre>clearMagazineCargo unitBackpack player</pre> |EXAMPLE2=
|x3= <pre>player action ["gear", unitBackpack player]</pre> |= Example 3
|x3= <pre>player action ["gear", unitBackpack player]</pre> |EXAMPLE3=


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[backpackContainer]], [[firstBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpack]], [[addBackpackCargo]], [[addBackpackCargoGlobal]], [[removeBackpack]], [[clearBackpackCargo]], [[clearBackpackCargoGlobal]], [[clearAllItemsFromBackpack]], [[loadBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[addItemToBackpack]], [[removeItemFromBackpack]], [[everyBackpack]]|= See also
| [[backpackContainer]], [[firstBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpack]], [[addBackpackCargo]], [[addBackpackCargoGlobal]], [[removeBackpack]], [[clearBackpackCargo]], [[clearBackpackCargoGlobal]], [[clearAllItemsFromBackpack]], [[loadBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[addItemToBackpack]], [[removeItemFromBackpack]], [[everyBackpack]]|SEEALSO=


}}
}}

Revision as of 14:50, 7 April 2019

Hover & click on the images for description

Description

Description:
Returns unit's backpack
Groups:
Uncategorised

Syntax

Syntax:
unitBackpack unit
Parameters:
unit: Object
Return Value:
Object

Examples

Example 1:
myBackpack = unitBackpack player
Example 2:
clearMagazineCargo unitBackpack player
Example 3:
player action ["gear", unitBackpack player]

Additional Information

See also:
backpackContainerfirstBackpackbackpackbackpackCargogetBackpackCargobackpackItemsaddBackpackaddBackpackCargoaddBackpackCargoGlobalremoveBackpackclearBackpackCargoclearBackpackCargoGlobalclearAllItemsFromBackpackloadBackpackbackpackSpaceForcanAddItemToBackpackaddItemToBackpackremoveItemFromBackpackeveryBackpack

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 - 15:49
ffur2007slx2_5
In ArmA3 ver 1.16, we can use either backpackContainer or unitBackpack at present since both of them enjoy same operand type and return value.

Bottom Section