Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the creature type of the unit (e.g. Crab).
creatureFamily = UnitCreatureFamily(unit)
Arguments[]
- unit
- string : UnitId - unit you wish to query.
Returns[]
- creatureFamily
- string - localized name of the creature family (e.g., "Crab" or "Wolf"). Known return values include:
enUS | deDE | Creature Type | |
---|---|---|---|
Aqiri | Aqir | Beast | |
Basilisk | Basilisk | Beast | |
Bat | Fledermaus | Beast | |
Bear | Bär | Beast | |
Beetle | Käfer | Beast | |
Bird of Prey | Raubvogel | Beast | |
Blood Beast | Blutbestie | Beast | |
Boar | Eber | Beast | |
Camel | Kamel | Beast | |
Carapid | Carapid | Beast | |
Carrion Bird | Aasvogel | Beast | |
Cat | Katze | Beast | |
Chimaera | Schimäre | Beast | |
Clefthoof | Grollhuf | Beast | |
Core Hound | Kernhund | Beast | |
Courser | Renner | Beast | |
Crab | Krebs | Beast | |
Crocolisk | Krokilisk | Beast | |
Devilsaur | Teufelssaurier | Beast | |
Direhorn | Terrorhorn | Beast | |
Dragonhawk | Drachenfalke | Beast | |
Feathermane | Federmähnen | Beast | |
Fox | Fuchs | Beast | |
Gorilla | Gorilla | Beast | |
Gruffhorn | Schroffhorn | Beast | |
Hound | Jagdhund | Beast | |
Hydra | Hydra | Beast | |
Hyena | Hyäne | Beast | |
Lesser Dragonkin | Niederer Drachkin | Beast | |
Lizard | Echse | Beast | |
Mammoth | Mammut | Beast | |
Mechanical | Mechanisch | Beast | |
Monkey | Affe | Beast | |
Moth | Motte | Beast | |
Oxen | Ochse | Beast | |
Pterrordax | Pterrordax | Beast | |
Raptor | Raptor | Beast | |
Ravager | Felshetzer | Beast | |
Ray | Rochen | Beast | |
Riverbeast | Flussbestie | Beast | |
Rodent | Nager | Beast | |
Scalehide | Schuppenbalg | Beast | |
Scorpid | Skorpid | Beast | |
Serpent | Schlange | Beast | |
Shale Beast | Schieferbestie | Beast | |
Spider | Spinne | Beast | |
Spirit Beast | Geisterbestie | Beast | |
Sporebat | Sporensegler | Beast | |
Stag | Hirsch | Beast | |
Stone Hound | Steinhund | Beast | |
Tallstrider | Weitschreiter | Beast | |
Toad | Kröte | Beast | |
Turtle | Schildkröte | Beast | |
Warp Stalker | Sphärenjäger | Beast | |
Wasp | Wespe | Beast | |
Water Strider | Wasserschreiter | Beast | |
Waterfowl | Wasservogel | Beast | |
Wind Serpent | Windnatter | Beast | |
Wolf | Wolf | Beast | |
Worm | Wurm | Beast | |
Fel Imp | Teufelswichtel | Demon | |
Felguard | Teufelswache | Demon | |
Felhunter | Teufelsjäger | Demon | |
Imp | Wichtel | Demon | |
Incubus | Inkubus | Demon | |
Observer | Beobachter | Demon | |
Shivarra | Shivarra | Demon | |
Succubus | Sukkubus | Demon | |
Void Lord | Leerenfürst | Demon | |
Voidwalker | Leerwandler | Demon | |
Wrathguard | Zornwächter | Demon | |
Fire Elemental | Feuerelementar | Elemental | |
Storm Elemental | Sturmelementar | Elemental | |
Water Elemental | Wasserelementar | Elemental | |
Abomination | Monstrosität | Undead | |
Ghoul | Ghul | Undead | |
Remote Control | Fernsteuerung | Mechanical |
Details[]
- 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.
Example[]
Displays a message if the target is a type of bear.
if ( UnitCreatureFamily("target") == "Bear" ) then
message("It's a godless killing machine! Run for your lives!");
end