API UseItemByName

From Wowpedia
Jump to: navigation, search

Uses an item, optionally on a specified target.

UseItemByName("name"[, "target"])

Arguments

name 
String - name of the item to use.
target 
String (optional) - unit to use the item on, defaults to "target" for items that can be used on others.

Patch history

The Burning Crusade Patch 2.0.1 (2006-12-05): Protected.

See also