WoW:API UnitCreatureFamily

From AddOn Studio
Revision as of 19:04, 19 December 2004 by WoWWiki>Jivy (created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
UnitCreatureFamily -Documentation by Boro-

Returns the creature family of the specified unit (e.g., "Crab" or "Wolf").

local creatureFamily = UnitCreatureFamily(unit);

Arguments
(String unit)
unit
the unit name (e.g., "target", "mouseover")

Returns
creatureFamily
creatureFamily
a string representing the creature family (e.g., "Crab" or "Wolf")

Example
 if ( UnitCreatureFamily("target") == "Bear" ) then
   Jump(); -- jump for joy because you found Pooh bear
  end
Result

If the target is a bear, then you jump.


Description
Returns the creature family of the specified unit (e.g., "Crab" or "Wolf").

Template:WoW API