backpackSpaceFor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:ArmA 2 OA: New Scripting Commands List" to "[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List")
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


|p2= weaponName: [[String]]|=  
|p2= weaponName: [[String]] |Parameter2=


| [[Array]] |RETURNVALUE=
| [[Array]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


Line 39: Line 39:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Containers|{{uc:{{PAGENAME}}}}]]

Revision as of 19:33, 25 November 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:
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