Wikia

WoWWiki

API UseItemByName

Talk0
101,313pages on
this wiki
Revision as of 20:41, August 8, 2008 by Fandyllic (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)

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

Around Wikia's network

Random Wiki