WoW:API TargetByName

From AddOn Studio
Revision as of 01:29, 8 January 2005 by WoWWiki>Nightspark
Jump to navigation Jump to search
TargetByName -Documentation by Flickering-
TargetByName("name");

Target a player by their name.


Arguments
("name")
name
String - The API TYPE PlayerName name of the player to target.

Example
TargetByName("Norrin");

Details
It's probably worth testing what happens if the name isn't close by, or doesn't exist, or is an enemy or NPC, etc. -- Flickering 14:06, 28 Dec 2004 (EST)
If the user isn't nearby or doesn't exist, TargetByName seems to pick the closest match from characters nearby. It is unknown if TargetByName returns any value if succesful or not. --Nightspark 20:29, 7 Jan 2005 (EST)

Template:WoW API