backpackContainer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
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"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.04 | |1.04 | ||
|gr1 = Containers | |gr1 = Containers | ||
| Returns a cargo container of a unit's backpack. | | Returns a cargo container of a unit's backpack. | ||
| [[backpackContainer]] unit | | [[backpackContainer]] unit | ||
|p1= unit: [[Object]] - a soldier | |p1= unit: [[Object]] - a soldier | ||
| [[Object]] - cargo container or [[objNull]] | | [[Object]] - cargo container or [[objNull]] | ||
|x1= <code>[[hint]] [[str]] [[backpackContainer]] [[player]]; {{cc|1a5f7900# 163944: backpack_fast.p3d}}</code> | |x1= <code>[[hint]] [[str]] [[backpackContainer]] [[player]]; {{cc|1a5f7900# 163944: backpack_fast.p3d}}</code> | ||
|x2= <code>[[hint]] [[str]] [[getMagazineCargo]] [[backpackContainer]] [[player]];</code> | |x2= <code>[[hint]] [[str]] [[getMagazineCargo]] [[backpackContainer]] [[player]];</code> | ||
Line 33: | Line 33: | ||
1 | 1 | ||
] | ] | ||
]</pre> | ]</pre> | ||
|x3= <code>([[backpackContainer]] [[player]]) [[addWeaponCargoGlobal]] [<nowiki/>[[weapons]] [[player]] [[select]] 0,1];</code> | |x3= <code>([[backpackContainer]] [[player]]) [[addWeaponCargoGlobal]] [<nowiki/>[[weapons]] [[player]] [[select]] 0,1];</code> | ||
| [[firstBackpack]], [[unitBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpack]], [[addBackpackCargo]], [[addBackpackCargoGlobal]], [[removeBackpack]], [[clearBackpackCargo]], [[clearBackpackCargoGlobal]], [[clearAllItemsFromBackpack]], [[loadBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[addItemToBackpack]], [[removeItemFromBackpack]], [[everyBackpack]], [[uniformContainer]], [[vestContainer]], [[everyContainer]] | | [[firstBackpack]], [[unitBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpack]], [[addBackpackCargo]], [[addBackpackCargoGlobal]], [[removeBackpack]], [[clearBackpackCargo]], [[clearBackpackCargoGlobal]], [[clearAllItemsFromBackpack]], [[loadBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[addItemToBackpack]], [[removeItemFromBackpack]], [[everyBackpack]], [[uniformContainer]], [[vestContainer]], [[everyContainer]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:01, 18 January 2021
Description
- Description:
- Returns a cargo container of a unit's backpack.
- Groups:
- Containers
Syntax
- Syntax:
- backpackContainer unit
- Parameters:
- unit: Object - a soldier
- Return Value:
- Object - cargo container or objNull
Examples
- Example 1:
hint str backpackContainer player; // 1a5f7900# 163944: backpack_fast.p3d
- Example 2:
hint str getMagazineCargo backpackContainer player;
[ [ "APERSBoundingMine_Range_Mag", "ClaymoreDirectionalMine_Remote_Mag", "SLAMDirectionalMine_Wire_Mag", "DemoCharge_Remote_Mag" ],[ 3, 2, 2, 1 ] ]
- Example 3:
(backpackContainer player) addWeaponCargoGlobal [weapons player select 0,1];
Additional Information
- See also:
- firstBackpackunitBackpackbackpackbackpackCargogetBackpackCargobackpackItemsaddBackpackaddBackpackCargoaddBackpackCargoGlobalremoveBackpackclearBackpackCargoclearBackpackCargoGlobalclearAllItemsFromBackpackloadBackpackbackpackSpaceForcanAddItemToBackpackaddItemToBackpackremoveItemFromBackpackeveryBackpackuniformContainervestContainereveryContainer
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:19
- 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.