canAddItemToBackpack: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
Lou Montana (talk | contribs) m (Text replacement - "\|s1= +" to "|s1= ") |
||
Line 8: | Line 8: | ||
|descr= Checks if given object can be stored into soldier's backpack. | |descr= Checks if given object can be stored into soldier's backpack. | ||
|s1= | |s1= unit [[canAddItemToBackpack]] item | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] |
Revision as of 15:41, 19 June 2021
Description
- Description:
- Checks if given object can be stored into soldier's backpack.
- Groups:
- Containers
Syntax
- Syntax:
- unit canAddItemToBackpack item
- Parameters:
- unit: Object
- item: String
- Return Value:
- Boolean
Alternative Syntax
- Syntax:
- unit canAddItemToBackpack [item, count] Template:Since
- Parameters:
- unit: Object
- [item, count]: Array
- item: String
- count: Number
- Return Value:
- Boolean
Examples
- Example 1:
if (player canAddItemToBackpack "HandGrenade") then { player addItemToBackpack _item } else { hint "no room!" };
Additional Information
- See also:
- canAddcanAddItemToUniformcanAddItemToVestbackpackContainerfirstBackpackunitBackpackbackpackbackpackCargogetBackpackCargobackpackItemsaddBackpackaddBackpackCargoaddBackpackCargoGlobalremoveBackpackclearBackpackCargoclearBackpackCargoGlobalclearAllItemsFromBackpackloadBackpackbackpackSpaceForaddItemToBackpackremoveItemFromBackpackeveryBackpack
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