UnitFactionGroup
functionimplementedavailable in: camelot
Returns the faction a unit belongs to.
function UnitFactionGroup( unitName: string, checkDisplayRace: boolean): (string, string)Parameters
| name | type | description |
|---|---|---|
unitName | string | UnitToken |
checkDisplayRace | boolean | Default: false. |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | factionGroupTag | string | Unit's faction name in English, i.e. "Alliance", "Horde", "Neutral" or nil. |
| 2 | localized | string | Unit's faction name in the client's locale or nil. |
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 ↗.