ACE3/addons/common/functions/fnc_hasItem.sqf

22 lines
380 B
Plaintext
Raw Normal View History

2015-09-19 20:27:23 +00:00
/*
* Author: Glowbal
* Check if unit has item. Note: case-sensitive.
2015-01-16 23:21:47 +00:00
*
2015-09-19 20:27:23 +00:00
* Arguments:
* 0: Unit <OBJECT>
* 1: Item Classname <STRING>
*
* Return Value:
* Unit has Item <BOOL>
2015-09-19 20:27:23 +00:00
*
* Example:
* [bob, "item"] call ace_common_fnc_hasItem
*
* Public: Yes
2015-01-16 23:21:47 +00:00
*/
2015-09-19 20:27:23 +00:00
#include "script_component.hpp"
params [["_unit", objNull, [objNull]], ["_item", "", [""]]];
2015-01-16 23:21:47 +00:00
_item in items _unit