backpackSpaceFor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 88528 by krzmbrzl on 2015-04-08T19:24:49Z)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns how much space is in backpack for given weapon or magazine |= Description
| Returns how much space is in backpack for given weapon or magazine |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| result <nowiki>=</nowiki> backpack '''backpackSpaceFor''' weaponName|= Syntax
| result <nowiki>=</nowiki> backpack '''backpackSpaceFor''' weaponName|SYNTAX=


|p1= backpack: [[Object]]|=  
|p1= backpack: [[Object]]|=  
|p2= weaponName: [[String]]|=  
|p2= weaponName: [[String]]|=  


| [[Array]] |= Return value
| [[Array]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 21: Line 21:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[backpackContainer]], [[firstBackpack]], [[unitBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpack]], [[addBackpackCargo]], [[addBackpackCargoGlobal]], [[removeBackpack]], [[clearBackpackCargo]], [[clearBackpackCargoGlobal]], [[clearAllItemsFromBackpack]], [[loadBackpack]], [[canAddItemToBackpack]], [[addItemToBackpack]], [[removeItemFromBackpack]], [[everyBackpack]] |= See also
| [[backpackContainer]], [[firstBackpack]], [[unitBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpack]], [[addBackpackCargo]], [[addBackpackCargoGlobal]], [[removeBackpack]], [[clearBackpackCargo]], [[clearBackpackCargoGlobal]], [[clearAllItemsFromBackpack]], [[loadBackpack]], [[canAddItemToBackpack]], [[addItemToBackpack]], [[removeItemFromBackpack]], [[everyBackpack]] |SEEALSO=


}}
}}

Revision as of 11:26, 7 April 2019

Hover & click on the images for description

Description

Description:
Returns how much space is in backpack for given weapon or magazine
Groups:
Uncategorised

Syntax

Syntax:
result = 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

Notes

Bottom Section