WoW:API UseItemByName

From AddOn Studio
Revision as of 23:57, 6 August 2008 by WoWWiki>Peeka (New page: Uses an item, optionally on a specified target UseItemByName("name", "target") Arguments: * name - The name of the item to use (string) * target - The unit to use as the target...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Uses an item, optionally on a specified target


UseItemByName("name", "target")

Arguments:

   * 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