ACE3/addons/common/functions/fnc_hasItem.sqf

19 lines
268 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
2015-01-16 23:21:47 +00:00
*/
2015-09-19 20:27:23 +00:00
#include "script_component.hpp"
params ["_unit", "_item"];
2015-01-16 23:21:47 +00:00
2015-09-19 20:27:23 +00:00
_item in items _unit // return