addBackpack: 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 34: | Line 34: | ||
|x2= <code>_mySoldierDude [[addBackpack]] "US_Patrol_Pack_EP1";</code> | |x2= <code>_mySoldierDude [[addBackpack]] "US_Patrol_Pack_EP1";</code> | ||
|seealso= [[addBackpackGlobal]] [[backpackContainer]] [[firstBackpack]] [[unitBackpack]] [[backpack]] [[backpackCargo]] [[getBackpackCargo]] [[backpackItems]] [[addBackpackCargo]] [[addBackpackCargoGlobal]] [[removeBackpack]] [[clearBackpackCargo]] [[clearBackpackCargoGlobal]] [[clearAllItemsFromBackpack]] [[loadBackpack]] [[backpackSpaceFor]] [[canAddItemToBackpack]] [[addItemToBackpack]] [[removeItemFromBackpack]] | |seealso= [[addBackpackGlobal]] [[backpackContainer]] [[firstBackpack]] [[unitBackpack]] [[backpack]] [[backpackCargo]] [[getBackpackCargo]] [[backpackItems]] [[addBackpackCargo]] [[addBackpackCargoGlobal]] [[removeBackpack]] [[clearBackpackCargo]] [[clearBackpackCargoGlobal]] [[clearAllItemsFromBackpack]] [[loadBackpack]] [[backpackSpaceFor]] [[canAddItemToBackpack]] [[addItemToBackpack]] [[removeItemFromBackpack]] [[everyBackpack]] | ||
}} | }} |
Revision as of 16:44, 20 January 2022
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
- backpackClassName: 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:
- addBackpackGlobal backpackContainer firstBackpack unitBackpack backpack backpackCargo getBackpackCargo backpackItems addBackpackCargo addBackpackCargoGlobal removeBackpack clearBackpackCargo clearBackpackCargoGlobal clearAllItemsFromBackpack loadBackpack backpackSpaceFor canAddItemToBackpack addItemToBackpack removeItemFromBackpack everyBackpack
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