addBackpack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (template:command argument fix)
Line 16: Line 16:
| unit '''addBackpack''' packClassName|SYNTAX=
| unit '''addBackpack''' packClassName|SYNTAX=


|p1= unit: [[Object]] |= Parameter 1
|p1= unit: [[Object]] |PARAMETER1=
|p2= packClassName: [[String]] |= Parameter 2
|p2= packClassName: [[String]] |PARAMETER2=


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>[[this]] [[addBackpack]] "TK_RPG_Backpack_EP1";</code> |= Example 1
|x1= <code>[[this]] [[addBackpack]] "TK_RPG_Backpack_EP1";</code> |EXAMPLE1=


|x2= <code>_mySoldierDude [[addBackpack]] "US_Patrol_Pack_EP1";</code> |= Example 2
|x2= <code>_mySoldierDude [[addBackpack]] "US_Patrol_Pack_EP1";</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 14:27, 7 April 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 packClassName
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