UnitHasItem

Parameters
whichUnitunit

Target unit.

whichItemitem

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 (raise an issue to discuss on Github or submit a PR)
return type
boolean
Source code
native          UnitHasItem             takes unit whichUnit, item whichItem returns boolean