backpackSpaceFor: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
(40 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2oa | |game1= arma2oa | ||
|version1= 1.50 | |||
|1. | |game2= tkoh | ||
|version2= 1.00 | |||
| | |game3= arma3 | ||
|version3= 0.50 | |||
|gr1= Containers | |||
|descr= Returns how much space is in backpack for given weapon or magazine | |||
| | |s1= backpack [[backpackSpaceFor]] weaponName | ||
|p1= backpack: [[Object]] | |p1= backpack: [[Object]] | ||
Line 17: | Line 20: | ||
|p2= weaponName: [[String]] | |p2= weaponName: [[String]] | ||
| [[Array]] | |r1= [[Array]] | ||
| | |x1= <sqf>(backpackContainer player) backpackSpaceFor "m16"; // [weapons, magazines]</sqf> | ||
|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