canAddItemToVest: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) * \| *s2 *=" to "|r1=$1 |s2=") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * \|p1=" to " |s1= $1 |p1=") |
||
Line 9: | Line 9: | ||
| Checks if given object can be stored into soldier's vest. | | Checks if given object can be stored into soldier's vest. | ||
| unit [[canAddItemToVest]] item | |s1= unit [[canAddItemToVest]] item | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] |
Revision as of 22:57, 12 June 2021
Description
- Description:
- Description needed
- Groups:
- Unit Inventory
Syntax
- Syntax:
- unit canAddItemToVest item
- Parameters:
- unit: Object
- item: String
- Return Value:
- Boolean
Alternative Syntax
- Syntax:
- unit canAddItemToVest [item, count] Template:Since
- Parameters:
- unit: Object
- [item, count]: Array
- item: String
- count: Number
- Return Value:
- Boolean
Examples
- Example 1:
_item = "HandGrenade"; private _fits = player canAddItemToVest _item; if (_fits) then { player addItemToVest _item; } else { hint "no room!"; };
Additional Information
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