backpackSpaceFor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
m (example formating)
Line 18: Line 18:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <pre>[weapons, magazines] = (backpack player) backpackSpaceFor "m16";</pre> |=  
|x1= <code>([[backpack]] [[player]]) [[backpackSpaceFor]] "m16"; // [weapons, magazines]</code> |=  
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 09:08, 4 July 2014

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