backpackSpaceFor: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{uc:{{PAGENAME}}}} " to "") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
(33 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2oa | |game1= arma2oa | ||
|version1= 1.50 | |||
|1. | |game2= tkoh | ||
|version2= 1.00 | |||
|game3= arma3 | |||
|version3= 0.50 | |||
|gr1= Containers | |gr1= Containers | ||
| Returns how much space is in backpack for given weapon or magazine | |descr= Returns how much space is in backpack for given weapon or magazine | ||
| backpack [[backpackSpaceFor]] weaponName | |s1= backpack [[backpackSpaceFor]] weaponName | ||
|p1= backpack: [[Object]] | |p1= backpack: [[Object]] | ||
Line 15: | Line 20: | ||
|p2= weaponName: [[String]] | |p2= weaponName: [[String]] | ||
| [[Array]] | |r1= [[Array]] | ||
|x1= < | |x1= <sqf>(backpackContainer player) backpackSpaceFor "m16"; // [weapons, magazines]</sqf> | ||
|seealso= [[backpackContainer]] | |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