backpackContainer: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) mNo edit summary |
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands) |
||
Line 56: | Line 56: | ||
<h3 style='display:none'>Bottom Section</h3> | <h3 style='display:none'>Bottom Section</h3> | ||
[[Category: | |||
[[Category: | [[Category:Arma 3: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Arma 3: Scripting Commands]] | |||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 16:43, 3 December 2018
Description
- Description:
- Returns a cargo container of a unit's backpack.
- Groups:
- Uncategorised
Syntax
- Syntax:
- backpackContainer unit
- Parameters:
- unit: Object - a soldier
- Return Value:
- Object - cargo container or <NULL-object>
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.