WoW API: UnitFactionGroup
Jump to navigation
Jump to search
Get the UnitID faction
englishFaction, localizedFaction = UnitFactionGroup(UnitID)
Arguments
- UnitID
- String - Unit ID you want to get the faction for
Returns
- englishFaction
- String - Faction name of the UnitID in English.
- localizedFaction
- String - Localized version of the faction name.
Details
Used to retrieve the UnitID faction (Horde or Alliance), this can be called at PLAYER_ENTERING_WORLD with a player UnitID.