backpackSpaceFor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "")
m (Text replacement - "\|s1= +" to "|s1= ")
Line 14: Line 14:
|descr= Returns how much space is in backpack for given weapon or magazine
|descr= Returns how much space is in backpack for given weapon or magazine


|s1= backpack [[backpackSpaceFor]] weaponName
|s1= backpack [[backpackSpaceFor]] weaponName


|p1= backpack: [[Object]]
|p1= backpack: [[Object]]

Revision as of 16:41, 19 June 2021

Hover & click on the images for description

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