UnitHasItem

Parameters
whichUnit unit

Target unit

whichItem item

Handle to item instance

comment

Returns true if unit has this specific instance of item somewhere in inventory. Returns false otherwise (null unit, item not found in inventory, null item etc).

return type
boolean
Source code
native UnitHasItem takes unit whichUnit, item whichItem returns boolean
Source
unit.j
wc3modding.com
UnitHasItem