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.
Get the name of the faction (Horde/Alliance) a unit belongs to.
englishFaction, localizedFaction = UnitFactionGroup(unit)
- String - UnitID you want to get the faction for
- String - Unit's faction name in English, i.e. "Alliance", "Horde" or nil.
- String - Unit's faction name in the client's locale or nil.
The functon returns correct results after the PLAYER_ENTERING_WORLD event.
Note that for NPCs, the function will only return Alliance/Horde for factions closely allied with either side. Goblins, for instance, return nil,nil.