WoW:API UnitFactionGroup: Difference between revisions
Jump to navigation
Jump to search
(Updated info to be accurate.) |
No edit summary |
||
Line 1: | Line 1: | ||
{{wowapi}} | |||
Get the [[API_TYPE_UnitId|UnitID]] faction | Get the [[API_TYPE_UnitId|UnitID]] faction | ||
englishFaction, localizedFaction = UnitFactionGroup([[API_TYPE_UnitId|UnitID]]) | |||
== Arguments == | |||
; [[API_TYPE_UnitId|UnitID]] : String - Unit ID you want to get the faction for | |||
: | == Returns == | ||
;englishFaction : String - Faction name of the [[API_TYPE_UnitId|UnitID]] in English. | |||
;localizedFaction : String - Localized version of the faction name. | |||
== Details == | |||
Used to retrieve the [[API_TYPE_UnitId|UnitID]] faction ([[Horde]] or [[Alliance]]), this can be called at PLAYER_ENTERING_WORLD with a player [[API_TYPE_UnitId|UnitID]]. | Used to retrieve the [[API_TYPE_UnitId|UnitID]] faction ([[Horde]] or [[Alliance]]), this can be called at PLAYER_ENTERING_WORLD with a player [[API_TYPE_UnitId|UnitID]]. | ||
Revision as of 19:53, 7 August 2007
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.