benilla-re systems structs docs

CM2Model::SetDoneCallback

function · models · orchestration

Address
0x711bb0 · 25 bytes, up to 0x711bc8
Meaning
Stores an instance's animation-done callback and its two arguments
Confidence
verified, proof one
Finding
animation/hosts#doodad-model

Finding: Doodad model in animation: model hosts

CreateDoodadModel(def, wait) (0x695100) makes a placed doodad's model and arms it. It creates the instance through the scene, sets its transform from the def, installs the done callback DoodadModelDone (0x6951b0), the event callback 0x6951e0 and the lighting callback 0x672a20, and calls PlayAnimation(-1, 0, -1, 0, 1.0, 1, 1): Stand with a drawn variation and a blend. When the done callback fires with reason 0, it plays the finished animation again on the same key bone with variation −1, speed 1.0 and no blend, so a doodad redraws its variation every time a window ends.

The derivation is in the doc.

Callers 26

Callees 0

None by a direct call or jump.

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