ACE3/addons/common/functions/fnc_hasItem.sqf

21 lines
329 B
Plaintext
Raw Normal View History

2015-09-19 20:27:23 +00:00
/*
* Author: Glowbal
* Check if unit has item
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:
* has Item <BOOL>
*
* Public: yes
*
* Note: Case sensitive
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
2015-09-19 20:27:23 +00:00
_item in items _unit // return