benilla-re systems structs docs

Script::UnitCreatureFamily

function · ui · orchestration

Address
0x51a310 · 130 bytes, up to 0x51a391
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

Calls and jumps by a bare address, from tables/calls.tsv.