Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API UnitFactionGroup

From WoW Classic Wiki

Get the UnitID faction

UnitFactionGroup("unitid");

Parameters

Arguments

UnitID
UnitID
String - Unit ID you want to get the faction for

Returns

englishFaction, localizedFaction
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.