WoW API: SetCurrentTitle

Revision as of 21:15, 8 May 2009 by WoWWiki>Xestrix (Created page with '{{wowapi}} __NOTOC__ One line summary description of function. == Arguments == TitleId : Number - Index of the title you want to set. == Returns == nil == Example == Se...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < SetCurrentTitle

One line summary description of function.

Arguments

TitleId

Number - Index of the title you want to set.

Returns

nil

Example

SetCurrentTitle(43);

This would set the title "Chef" if your character had earned the title, otherwise it removes any active title.

Details

  • The last indexed value (currently 132) returns nil and removes the player's name completely (not available to players).
  • Title index -1 will clear titles from the player's name. (Option "None" from the Character frame's title dropdown menu.)
  • GetTitleName can be used to find the name associated with the TitleId.