Files
ACE3/addons/common/functions/fnc_hasItem.sqf
2023-09-12 20:58:10 +02:00

22 lines
410 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Glowbal
* Check if unit has item. Note: case-sensitive.
*
* Arguments:
* 0: Unit <OBJECT>
* 1: Item Classname <STRING>
*
* Return Value:
* Unit has Item <BOOL>
*
* Example:
* [bob, "item"] call ace_common_fnc_hasItem
*
* Public: Yes
*/
params [["_unit", objNull, [objNull]], ["_item", "", [""]]];
_item in (_unit call EFUNC(common,uniqueItems))