Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Returns the faction (Horde/Alliance) a unit belongs to.

englishFaction, localizedFaction = UnitFactionGroup(unit)

Arguments[]

unit
string : UnitId

Returns[]

englishFaction
string - Unit's faction name in English, i.e. "Alliance", "Horde", "Neutral" or nil.
localizedFaction
string - Unit's faction name in the client's locale or nil.

Details[]

  • The function returns may not return correct results until after PLAYER_ENTERING_WORLD event for units other than "player".
  • Note that for NPCs, the function will only return Alliance/Horde for factions closely allied with either side. Goblins, for instance, return nil,nil.
  • Pandaren player characters on the Wandering Isle return "Neutral", "".
Advertisement