WoW:API UnitCreatureFamily: Difference between revisions

Function returns nil if unit is not a creature
(created)
 
(Function returns nil if unit is not a creature)
Line 1: Line 1:
  <center>'''UnitCreatureFamily''' ''-Documentation by [[User:Boro|Boro]]-''</center>
  <center>'''UnitCreatureFamily''' ''-Documentation by [[User:Boro|Boro]]-''</center>


Returns the creature family of the specified unit (e.g., "Crab" or "Wolf").
Returns the creature family of the specified unit (e.g., "Crab" or "Wolf"), or nil if the unit does not have a creature family (e.g. because it is not a creature).


  local creatureFamily = UnitCreatureFamily(unit);
  local creatureFamily = UnitCreatureFamily(unit);
Line 30: Line 30:
;''Description''
;''Description''


: Returns the creature family of the specified unit (e.g., "Crab" or "Wolf").
: Returns the creature family of the specified unit (e.g., "Crab" or "Wolf"), or nil if the unit does not have a creature family (e.g. because it is not a creature).


----
----
{{Template:WoW API}}
{{Template:WoW API}}
Anonymous user