backpackSpaceFor: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters") |
m (Text replacement - "|Game version=" to "|Game version= |gr1 = Containers |GROUP1= ") |
||
Line 5: | Line 5: | ||
|1.51|Game version= | |1.51|Game version= | ||
|gr1 = Containers |GROUP1= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 13:48, 18 September 2020
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:
(backpack player) backpackSpaceFor "m16"; // [weapons, magazines]
Additional Information
- See also:
- backpackContainerfirstBackpackunitBackpackbackpackbackpackCargogetBackpackCargobackpackItemsaddBackpackaddBackpackCargoaddBackpackCargoGlobalremoveBackpackclearBackpackCargoclearBackpackCargoGlobalclearAllItemsFromBackpackloadBackpackcanAddItemToBackpackaddItemToBackpackremoveItemFromBackpackeveryBackpack
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