Method Unit:GetRaceAsString [-] [+]

Returns the Unit's race's name in given or default locale or nil.

enum LocaleConstant
{
    LOCALE_enUS = 0,
    LOCALE_koKR = 1,
    LOCALE_frFR = 2,
    LOCALE_deDE = 3,
    LOCALE_zhCN = 4,
    LOCALE_zhTW = 5,
    LOCALE_esES = 6,
    LOCALE_esMX = 7,
    LOCALE_ruRU = 8
};

Synopsis

raceName = Unit:GetRaceAsString( locale )

Arguments

LocaleConstant locale (DEFAULT_LOCALE)

Locale to return the race name in.

Returns

string raceName

Race name or nil.

Generated on
©2016 - Eluna Lua Engine