addItemToBackpack: 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 | ||
|arg= global |MParg= | |arg= global |MParg= | ||
Line 11: | Line 11: | ||
|eff= global |MPeff= | |eff= global |MPeff= | ||
| Create new item and store it to soldier's backpack. The item can also be a weapon or a magazine. | | Create new item and store it to soldier's backpack. The item can also be a weapon or a magazine. | ||
| unit [[addItemToBackpack]] item | | unit [[addItemToBackpack]] item | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2= item: [[String]] | |p2= item: [[String]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[player]] [[addItemToBackpack]] "arifle_MXM_Hamr_pointer_F";</code> | |x1= <code>[[player]] [[addItemToBackpack]] "arifle_MXM_Hamr_pointer_F";</code> | ||
|x2= <code>[[player]] [[addItemToBackpack]] "itemGPS";</code> | |x2= <code>[[player]] [[addItemToBackpack]] "itemGPS";</code> | ||
| [[addItemToUniform]], [[addItemToVest]], [[backpackContainer]], [[firstBackpack]], [[unitBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpack]], [[addBackpackCargo]], [[addBackpackCargoGlobal]], [[removeBackpack]], [[clearBackpackCargo]], [[clearBackpackCargoGlobal]], [[clearAllItemsFromBackpack]], [[loadBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[removeItemFromBackpack]], [[everyBackpack]] | | [[addItemToUniform]], [[addItemToVest]], [[backpackContainer]], [[firstBackpack]], [[unitBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpack]], [[addBackpackCargo]], [[addBackpackCargoGlobal]], [[removeBackpack]], [[clearBackpackCargo]], [[clearBackpackCargoGlobal]], [[clearAllItemsFromBackpack]], [[loadBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[removeItemFromBackpack]], [[everyBackpack]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:04, 18 January 2021
Description
- Description:
- Create new item and store it to soldier's backpack. The item can also be a weapon or a magazine.
- Groups:
- Containers
Syntax
- Syntax:
- unit addItemToBackpack item
- Parameters:
- unit: Object
- item: String
- Return Value:
- Nothing
Examples
- Example 1:
player addItemToBackpack "arifle_MXM_Hamr_pointer_F";
- Example 2:
player addItemToBackpack "itemGPS";
Additional Information
- See also:
- addItemToUniformaddItemToVestbackpackContainerfirstBackpackunitBackpackbackpackbackpackCargogetBackpackCargobackpackItemsaddBackpackaddBackpackCargoaddBackpackCargoGlobalremoveBackpackclearBackpackCargoclearBackpackCargoGlobalclearAllItemsFromBackpackloadBackpackbackpackSpaceForcanAddItemToBackpackremoveItemFromBackpackeveryBackpack
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