WoW:API TargetByName: Difference between revisions
Jump to navigation
Jump to search
TargetByName -Documentation by Flickering-
m (Finished the experiment) |
No edit summary |
||
Line 24: | Line 24: | ||
---- | ---- | ||
{{ | {{WoW API}} | ||
Revision as of 05:55, 4 January 2006
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
- If the user isn't nearby or doesn't exist, TargetByName seems to pick the closest match from characters nearby. --Nightspark 20:29, 7 Jan 2005 (EST)
- If there is no close match available then an error message is displayed (Error event?) and the target is left unchanged. There is no return value from this method so the only way to check for success is see what the target ended up as afterwards. -- Flickering 20:37, 7 Jan 2005 (EST)