benilla-re systems structs docs

CWorld::PlayEntityAnimation

function · terrain · orchestration

Address
0x6709f0 · 63 bytes, up to 0x670a2e
Signature
void __fastcall (void *entity, uint32_t animation, uint32_t unused)
Meaning
Plays an animation on an entity's doodad models by its type
Confidence
verified, proof one
Finding
terrain/entities#entity-animation

Finding: Entity animation in terrain: entity facets

0x6709f0(entity, animation, unused) plays an animation on an entity by type. A map object def (bit 0x8) passes it to 0x6a24b0, which calls 0x6a20f0 for each group def in its list +0x138; that calls PlayAnimation(-1, animation, -1, 0, 1.0, 1, 1) on the model of each doodad def in the group's list. A doodad def (bit 0x40) with a model plays it on that model the same way. Without a model, or for any other entity, nothing is played. Nothing uses the third argument. The entity chain tests only that a model exists: a model not yet loaded queues the play, and a map object with no doodad defs has nothing to play on.

The derivation is in the doc.

Callers 2

Callees 2

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