Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
→ WoW API
Returns the race (Tauren, Orc, etc) of the specified unit.
race, raceEn = UnitRace("unit");
- String - The UnitId to get information from.
- The localized race of the specified unit as a string. e.g. Tauren, Orc etc.
- The race in english as a string. e.g Tauren, Orc etc.
- (Note for undead: race returns "Undead" but raceEn returns "Scourge")
local race = UnitRace("player"); ChatFrame1:AddMessage('Your player is a : ' .. race .. );
Prints the player's race to the chat frame as 'Your player is a : Tauren'. (Or whichever race the specified unit is)