backpackContainer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(30 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
|r1= [[Object]] - cargo container or [[objNull]] | |r1= [[Object]] - cargo container or [[objNull]] | ||
|x1= < | |x1= <sqf>hint str backpackContainer player; // 1a5f7900# 163944: backpack_fast.p3d</sqf> | ||
|x2= < | |x2= <sqf> | ||
hint str getMagazineCargo backpackContainer player; | |||
/* | |||
returns e.g | returns e.g | ||
[ | [ | ||
Line 32: | Line 33: | ||
] | ] | ||
] | ] | ||
*/</ | */ | ||
</sqf> | |||
|x3= < | |x3= <sqf>(backpackContainer player) addWeaponCargoGlobal [weapons player select 0, 1];</sqf> | ||
|seealso= [[firstBackpack]] [[unitBackpack]] [[backpack]] | |seealso= [[firstBackpack]] [[unitBackpack]] [[backpack]] [[backpackCargo]] [[getBackpackCargo]] [[backpackItems]] [[addBackpack]] [[addBackpackCargo]] [[addBackpackCargoGlobal]] [[removeBackpack]] [[clearBackpackCargo]] [[clearBackpackCargoGlobal]] [[clearAllItemsFromBackpack]] [[loadBackpack]] [[backpackSpaceFor]] [[canAddItemToBackpack]] [[addItemToBackpack]] [[removeItemFromBackpack]] [[everyBackpack]] [[uniformContainer]] [[vestContainer]] [[everyContainer]] | ||
}} | }} | ||
{{Note | |||
|user= ffur2007slx2_5 | |||
|timestamp= 20140429151900 | |||
|text= 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. | |||
}} | |||
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. | |||
Latest revision as of 14:06, 13 May 2022
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:
- Example 2:
- hint str getMagazineCargo backpackContainer player; /* returns e.g [ [ "APERSBoundingMine_Range_Mag", "ClaymoreDirectionalMine_Remote_Mag", "SLAMDirectionalMine_Wire_Mag", "DemoCharge_Remote_Mag" ],[ 3, 2, 2, 1 ] ] */
- Example 3:
Additional Information
- See also:
- firstBackpack unitBackpack backpack backpackCargo getBackpackCargo backpackItems addBackpack addBackpackCargo addBackpackCargoGlobal removeBackpack clearBackpackCargo clearBackpackCargoGlobal clearAllItemsFromBackpack loadBackpack backpackSpaceFor canAddItemToBackpack addItemToBackpack removeItemFromBackpack everyBackpack uniformContainer vestContainer everyContainer
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
- Posted on Apr 29, 2014 - 15:19 (UTC)
- In Arma 3 ver 1.16, we can use either backpackContainer or unitBackpack at present since both of them enjoy same operand type and return value.