Lua GetFaction

From ArcEmu-Wiki
Jump to: navigation, search

Description

Returns the numerical value representing the units faction.

Return values

1:    Human / Mensch
3:    Dwarf / Zwerg
4:    Nightelf / Nachtelf
115:  Gnom
1629: Draenei

2:    Orc
5:    Undeath / Untoter
6:    Taur
116:  Troll
1610: Bloodelf / Blutelf

Usage/Examples

function ReturnFaction(pUnit)
	pUnit:SendChatMessage(12, 0, "Hello my faction is: "..pUnit:GetFaction().."!")
end
Personal tools