ACE3/addons/common/functions/fnc_hasItem.sqf

21 lines
329 B
Plaintext

/*
* Author: Glowbal
* Check if unit has item
*
* Arguments:
* 0: Unit <OBJECT>
* 1: Item Classname <STRING>
*
* Return Value:
* has Item <BOOL>
*
* Public: yes
*
* Note: Case sensitive
*/
#include "script_component.hpp"
params [["_unit", objNull, [objNull]], ["_item", "", [""]]];
_item in items _unit // return