ACE3/addons/common/functions/fnc_hasItem.sqf
2015-01-17 00:21:47 +01:00

13 lines
293 B
Plaintext

/**
* 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));