Uses an item, optionally on a specified target

UseItemByName("name", "target")


   * name - The name of the item to use (string)
   * target - The unit to use as the target of the item, if applicable (unitId) 
This function is protected and can only be called by the Blizzard user interface

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.