addBackpack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:ArmA 2 OA: New Scripting Commands List" to "[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List")
Line 3: Line 3:


| arma2oa |Game name=
| arma2oa |Game name=
|arg= local|=
 
|eff= global|=
|arg= local|Arguments=
 
|eff= global|Effects=
 
|1.51|Game version=
|1.51|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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.
Classname list of available backpacks :
{{Informative |
*[[ArmA 2 OA: Backpacks|Arma 2 OA backpacks]]
Classname list of available backpacks:
*[[Arma 3 CfgVehicles EMPTY|Arma 3 backpacks]] - objects starting with "B_", starts with "''B_AssaultPack_khk''" |DESCRIPTION=
* [[ArmA 2 OA: Backpacks|Arma 2 OA backpacks]]
* [[Arma 3 CfgVehicles EMPTY|Arma 3 backpacks]] - objects starting with "B_", starts with "''B_AssaultPack_khk''"
}} |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| unit '''addBackpack''' packClassName|SYNTAX=
| unit [[addBackpack]] backpackClassName |SYNTAX=


|p1= unit: [[Object]] |PARAMETER1=
|p1= unit: [[Object]] |PARAMETER1=
Line 28: Line 33:


| [[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=
}}
}}


Line 44: Line 48:
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Containers|{{uc:{{PAGENAME}}}}]]

Revision as of 19:22, 25 November 2019

Hover & click on the images for description

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.
Classname list of available backpacks:
Groups:
Uncategorised

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