Fandom

WoWWiki

API UnitCreatureType

104,634pages on
this wiki
Add New Page
Talk1 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < UnitCreatureType

Returns the creature type of the specified unit.

creatureType = UnitCreatureType(unit)

ArgumentsEdit

unit 
string - the UnitId to query

ReturnsEdit

creatureType 
string - the localized creature type of the unit

ExamplesEdit

print(UnitCreatureType("target"))

ResultEdit

Prints the target's creature type to the chat frame.

NotesEdit

  • Returns nil if the unit does not exist, or if the unit's creature type isn't available.
  • As of patch 3.0.9, the possible (English) return values are:
* Beast
* Dragonkin
* Demon
* Elemental
* Giant
* Undead
* Humanoid
* Critter
* Mechanical
* Not specified
* Totem
* Non-combat Pet
* Gas Cloud
  • The default Blizzard UI displays an empty string instead of "Not specified" for units with that creature type.

Also on Fandom

Random Wiki