ACE3/addons/common/functions/fnc_hasItem.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

24 lines
390 B
Plaintext

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