backpackSpaceFor: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 22: | Line 22: | ||
|r1= [[Array]] | |r1= [[Array]] | ||
|x1= < | |x1= <sqf>(backpackContainer player) backpackSpaceFor "m16"; // [weapons, magazines]</sqf> | ||
|seealso= [[backpackContainer]] [[firstBackpack]] [[unitBackpack]] [[backpack]] [[backpackCargo]] [[getBackpackCargo]] [[backpackItems]] [[addBackpack]] [[addBackpackCargo]] [[addBackpackCargoGlobal]] [[removeBackpack]] [[clearBackpackCargo]] [[clearBackpackCargoGlobal]] [[clearAllItemsFromBackpack]] | |seealso= [[backpackContainer]] [[firstBackpack]] [[unitBackpack]] [[backpack]] [[backpackCargo]] [[getBackpackCargo]] [[backpackItems]] [[addBackpack]] [[addBackpackCargo]] [[addBackpackCargoGlobal]] [[removeBackpack]] [[clearBackpackCargo]] [[clearBackpackCargoGlobal]] [[clearAllItemsFromBackpack]] [[loadBackpack]] [[canAddItemToBackpack]] [[addItemToBackpack]] [[removeItemFromBackpack]] [[everyBackpack]] | ||
}} | }} |
Latest revision as of 10:21, 13 May 2022
Description
- Description:
- Returns how much space is in backpack for given weapon or magazine
- Groups:
- Containers
Syntax
- Syntax:
- backpack backpackSpaceFor weaponName
- Parameters:
- backpack: Object
- weaponName: String
- Return Value:
- Array
Examples
- Example 1:
Additional Information
- See also:
- backpackContainer firstBackpack unitBackpack backpack backpackCargo getBackpackCargo backpackItems addBackpack addBackpackCargo addBackpackCargoGlobal removeBackpack clearBackpackCargo clearBackpackCargoGlobal clearAllItemsFromBackpack loadBackpack 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