backpackSpaceFor

From Bohemia Interactive Community
Revision as of 19:06, 3 December 2018 by Erentar (talk | contribs) (Bot: Reverted to revision 88528 by krzmbrzl on 2015-04-08T19:24:49Z)
Jump to navigation Jump to search
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