benilla-re systems structs docs

Script::UnitCreatureType

function · ui · orchestration

Address
0x51a280 · 130 bytes, up to 0x51a301
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the localised creature type name of a unit, or nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/unitinfo#the-creature-type

Finding: The creature type in ui: unit presence, flags, classification and type

UnitCreatureType(unit) raises Usage: UnitCreatureType("unit") for a missing argument and pushes the localised type name, or nil. 0x605570 finds the type id in three stages: the shapeshift form of the unit (UNIT_FIELD_BYTES_1 byte 2, +0x212), when its row has a type above 0; else the creature record's type (+0x18) when the unit has a record; else the race row's type, when above 0. The name is CreatureType.dbc row word 4 + 4*locale.

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.