addItemToBackpack: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ") |
||
Line 24: | Line 24: | ||
|x2= <code>[[player]] [[addItemToBackpack]] "itemGPS";</code> | |x2= <code>[[player]] [[addItemToBackpack]] "itemGPS";</code> | ||
|seealso= [[addItemToUniform]] [[addItemToVest]] [[backpackContainer]] [[firstBackpack]] [[unitBackpack]] [[backpack]] [[backpackCargo]] [[getBackpackCargo]] [[backpackItems]] [[addBackpack]] [[addBackpackCargo]] [[addBackpackCargoGlobal]] [[removeBackpack]] [[clearBackpackCargo]] [[clearBackpackCargoGlobal]] | |seealso= [[addItemToUniform]] [[addItemToVest]] [[backpackContainer]] [[firstBackpack]] [[unitBackpack]] [[backpack]] [[backpackCargo]] [[getBackpackCargo]] [[backpackItems]] [[addBackpack]] [[addBackpackCargo]] [[addBackpackCargoGlobal]] [[removeBackpack]] [[clearBackpackCargo]] [[clearBackpackCargoGlobal]] [[clearAllItemsFromBackpack]], [[loadBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[removeItemFromBackpack]], [[everyBackpack]] | ||
}} | }} |
Revision as of 16:26, 20 January 2022
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:
- addItemToUniform addItemToVest backpackContainer firstBackpack unitBackpack backpack backpackCargo getBackpackCargo backpackItems addBackpack addBackpackCargo addBackpackCargoGlobal removeBackpack clearBackpackCargo clearBackpackCargoGlobal clearAllItemsFromBackpackloadBackpackbackpackSpaceForcanAddItemToBackpackremoveItemFromBackpackeveryBackpack
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