addBackpack: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?]]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2oa |Game name= | | arma2oa |Game name= | ||
Line 13: | Line 12: | ||
| Adds a backpack for a unit. If a unit already has a backpack, the old backpack will be placed on the ground under the unit. | | Adds a backpack for a unit. If a unit already has a backpack, the old backpack will be placed on the ground under the unit. | ||
Line 21: | Line 19: | ||
* [[Arma 3 CfgVehicles EMPTY|Arma 3 backpacks]] - objects starting with "B_", starts with "''B_AssaultPack_khk''" | * [[Arma 3 CfgVehicles EMPTY|Arma 3 backpacks]] - objects starting with "B_", starts with "''B_AssaultPack_khk''" | ||
}} |DESCRIPTION= | }} |DESCRIPTION= | ||
| unit [[addBackpack]] backpackClassName |SYNTAX= | | unit [[addBackpack]] backpackClassName |SYNTAX= | ||
Line 29: | Line 26: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[[this]] [[addBackpack]] "TK_RPG_Backpack_EP1";</code> |EXAMPLE1= | |x1= <code>[[this]] [[addBackpack]] "TK_RPG_Backpack_EP1";</code> |EXAMPLE1= | ||
|x2= <code>_mySoldierDude [[addBackpack]] "US_Patrol_Pack_EP1";</code> |EXAMPLE2= | |x2= <code>_mySoldierDude [[addBackpack]] "US_Patrol_Pack_EP1";</code> |EXAMPLE2= | ||
| [[addBackpackGlobal]], [[backpackContainer]], [[firstBackpack]], [[unitBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpackCargo]], [[addBackpackCargoGlobal]], [[removeBackpack]], [[clearBackpackCargo]], [[clearBackpackCargoGlobal]], [[clearAllItemsFromBackpack]], [[loadBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[addItemToBackpack]], [[removeItemFromBackpack]], [[everyBackpack]]|SEEALSO= | | [[addBackpackGlobal]], [[backpackContainer]], [[firstBackpack]], [[unitBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpackCargo]], [[addBackpackCargoGlobal]], [[removeBackpack]], [[clearBackpackCargo]], [[clearBackpackCargoGlobal]], [[clearAllItemsFromBackpack]], [[loadBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[addItemToBackpack]], [[removeItemFromBackpack]], [[everyBackpack]]|SEEALSO= |
Revision as of 00:08, 17 January 2021
Description
- Description:
- Adds a backpack for a unit. If a unit already has a backpack, the old backpack will be placed on the ground under the unit.
- Groups:
- Containers
Syntax
- Syntax:
- unit addBackpack backpackClassName
- Parameters:
- unit: Object
- packClassName: String
- Return Value:
- Nothing
Examples
- Example 1:
this addBackpack "TK_RPG_Backpack_EP1";
- Example 2:
_mySoldierDude addBackpack "US_Patrol_Pack_EP1";
Additional Information
- See also:
- addBackpackGlobalbackpackContainerfirstBackpackunitBackpackbackpackbackpackCargogetBackpackCargobackpackItemsaddBackpackCargoaddBackpackCargoGlobalremoveBackpackclearBackpackCargoclearBackpackCargoGlobalclearAllItemsFromBackpackloadBackpackbackpackSpaceForcanAddItemToBackpackaddItemToBackpackremoveItemFromBackpackeveryBackpack
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
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.51
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Containers
- Scripting Commands: Global Effect
- Arma 2: Operation Arrowhead: New Scripting Commands List
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands