API TargetByName

Revision as of 06:21, February 10, 2007 by VoidvectorBot (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
102,949pages on
this wiki
WoW API < TargetByName

Target a player by their name.

TargetByName("name", exactMatch);

Parameters Edit


("name", exactMatch)
String - The name of the player to target.

Example Edit

TargetByName("Norrin", true);

Details Edit

If the user isn't nearby or doesn't exist, and exactMatch isn't set, TargetByName picks the closest match from characters nearby.
If exactMatch is set, TargetByName can also target party members even if they are out of visible range.
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.

Around Wikia's network

Random Wiki