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).

patch

1.00

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