UnitRace
functionimplementedavailable in: camelot
Returns the race of the unit.
function UnitRace( unit: string): (string?, string?, number?)Parameters
| name | type |
|---|---|
unit | string |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | localizedRaceName | string? | Localized race name, suitable for use in user interfaces. |
| 2 | englishRaceName | string? | Localization-independent race name, suitable for use as table keys. |
| 3 | raceID | number? | RaceId. Localization-independent raceID. |
Blizzard's documentation says it may return nothing.
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Unit system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.