benilla-re systems structs docs

CWorld::GetEntityAreaName

function · terrain · orchestration

Address
0x6704e0 · 14 bytes, up to 0x6704ed
Signature
uint32_t __fastcall (void *entity, const char **name)
Meaning
Returns the area name under an entity through GetEntityAreaName, or 0 for none
Confidence
verified, proof one
Finding
terrain/zones#indoor-area-names

Finding: Indoor area names in terrain: zones

0x67e670 takes the entity, the zone text slot, the subzone text slot and the zone id. It returns 0 without change when the last update was indoors and the entity's group key (or the zone id when it has none) equals the stored key. Otherwise it stores the key, replaces the zone text with the whole-WMO name and clears the subzone when that name is non-empty and differs, ignoring case, from the subzone, sets the subzone to the group's own name when that is non-empty, applies the audio of the group's WMOAreaTable row, each field from the whole-WMO row where it is 0, with the override flag 1, and returns 1.

The derivation is in the doc.

Callers 1

Callees 1

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