WoW:API UnitFactionGroup: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 2: Line 2:
UnitFactionGroup("player") returns nil before PLAYER_ENTERING_WORLD and after/during PLAYER_LEAVING_WORLD event.
UnitFactionGroup("player") returns nil before PLAYER_ENTERING_WORLD and after/during PLAYER_LEAVING_WORLD event.
UnitFactionGroup("target") returns the faction group the current target or nil if there is no current target.
UnitFactionGroup("target") returns the faction group the current target or nil if there is no current target.
[[Category:API Functions|UnitFactionGroup]]
[[Category:API Faction Functions|UnitFactionGroup]]
[[Category:API Unit Functions|UnitFactionGroup]]

Revision as of 18:10, 29 August 2005

UnitFactionGroup("player") returns the faction of the currently logged in character (Horde or Alliance). UnitFactionGroup("player") returns nil before PLAYER_ENTERING_WORLD and after/during PLAYER_LEAVING_WORLD event. UnitFactionGroup("target") returns the faction group the current target or nil if there is no current target.