Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitCreatureFamily

Last wiki revision 2022-11-05

Returns the creature type of the unit (e.g. Crab). creatureFamily = UnitCreatureFamily(unit)

  • unit: : UnitId - unit you wish to query.
  • creatureFamily: - localized name of the creature family (e.g., "Crab" or "Wolf"). Known return values include:
  • Does not work on all creatures, since the family's primary function is to determine what abilities the unit will have if a player is able to control it. However, it does work on almost all Beasts, even if they are not tameable by Hunters.
  • Returns nil if the creature doesn't belong to a family that includes a tameable creature.

Displays a message if the target is a type of bear.

Source

https://warcraft.wiki.gg/wiki/API_UnitCreatureFamily · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.