WoW:API TargetByName
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)