Difference between revisions of "VN ms fnc hasItems"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {{Function" to "Category:TODO {{Function") |
Lou Montana (talk | contribs) m (Text replacement - "]]; |p1n=" to "]] |p1n=") |
||
Line 40: | Line 40: | ||
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small> | </pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small> | ||
− | |s= [] call [[vn_ms_fnc_hasItems]] | + | |s= [] call [[vn_ms_fnc_hasItems]] |
|p1n= | |p1n= |
Revision as of 21:21, 20 January 2021
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Wyqer, veteran29 |
|
Description
/* File: fn_hasItems.sqf Author: Wyqer, veteran29 Date: 2020-10-08 Last Update: 2020-11-10 Public: Yes Description: Checks if given units have at least one of each given item in their inventory. Parameter(s): _units - Array of units and/or groups to check for the item [ARRAY, defaults to []] _items - Array of item classnames to check for in their inventories [ARRAY, defaults to []] _all - Selector if all items should be in the inventory at least once or just one of the items are needed [BOOL, defaults to true] Returns: At least one of each item is in the inventory of provided groups [BOOL] Example(s): // Both listed items are need to be at least once in the inventory [[player], ["vn_mine_m18_mag", "vn_mine_m18_x3_mag"]] call vn_ms_fnc_hasItems // One of the listed items needs to be at least once in the inventory [[player], ["vn_mine_m18_mag", "vn_mine_m18_x3_mag"], false] call vn_ms_fnc_hasItems */(Placeholder description extracted from the function header by LM_exportFunctionsToWiki.sqf)
Syntax
- Syntax
- [] call vn_ms_fnc_hasItems
- Return value
- Nothing
Examples
- Example 1
-