ACE3/addons/common/functions/fnc_hasItem.sqf

13 lines
293 B
Plaintext
Raw Normal View History

2015-01-16 23:21:47 +00:00
/**
* fn_hasItem.sqf
* @Descr: Check if unit has item
* @Author: Glowbal
*
* @Arguments: [unit OBJECT, item STRING (Classname of item)]
* @Return: BOOL
* @PublicAPI: true
*/
#include "script_component.hpp"
// item classname in items unit
((_this select 1) in items (_this select 0));