Issues an immediate order for the unit to use the specified item.
This is the same as left-clicking and using an item in inventory. Units that cannot use items will not do anything.
Returns:
Examples:
Potion of Healing 'phea':
'phea'
Dagger of Escape 'desc': is not casted, because requires a position as a target. However, an order is issued, hence returns true.
'desc'
Inferno Stone 'infs': same as with dagger above.
'infs'
See: UnitUseItemPoint, UnitUseItemTarget.
UnitUseItemPoint
UnitUseItemTarget
Generated using TypeDoc
Issues an immediate order for the unit to use the specified item.
This is the same as left-clicking and using an item in inventory. Units that cannot use items will not do anything.
Returns:
Examples:
Potion of Healing
'phea'
:Dagger of Escape
'desc'
: is not casted, because requires a position as a target. However, an order is issued, hence returns true.Inferno Stone
'infs'
: same as with dagger above.