Wikia

WoWWiki

API UnitFactionGroup

Talk0
101,546pages on
this wiki
Revision as of 20:05, August 7, 2007 by Starlightblunder (Talk | contribs)

WoW API < UnitFactionGroup

Get the name of the faction (Horde/Alliance) a unit belongs to.

englishFaction, localizedFaction = UnitFactionGroup(unit)

Arguments

unit 
String - UnitID you want to get the faction for

Returns

englishFaction 
String - Unit's faction name in English.
localizedFaction 
String - Unit's faction name in the client's locale.

Details

The functon returns correct results after the PLAYER_ENTERING_WORLD event.

Around Wikia's network

Random Wiki