Script::UnitCreatureFamily
function · ui · orchestration
- Address
0x51a310· 130 bytes, up to0x51a391- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the localized creature family name of a unit, or nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/unitstats#creature-family
Finding: Creature family in ui: unit stat functions
UnitCreatureFamily(unit) returns the localized family name of a unit, or nil when the family id is 0, negative, above
the table's highest id or has no row, or while the creature record has not arrived. The family id is not a descriptor
field: it is the word at +0x1c of the cached creature record ([unit+0xb30]). A non-string argument raises Usage: UnitCreatureFamily("unit"). The food types of the pet's family are ui/petbar#other-pet-functions.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- GetUnitFromToken ui
- CGUnit_C::GetCreatureFamily objectlayer
- lua_isstring lua
- lua_tostring lua
- lua_pushnil lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.