benilla-re systems structs docs

AnimatedHandlerOnFlagsChanged

function · objectlayer · primitive

Address
0x5f3880 · 109 bytes, up to 0x5f38ec
Meaning
Pauses or resumes a family A model by GAMEOBJECT_FLAGS 0x80 in its moving states
Confidence
verified, proof one
Finding
objectlayer/gameobjecttypes#playing-a-state

Finding: Playing a state in objectlayer: game object types

Setting a new state plays its animation unless the model's key bone already plays it. A missing open or close animation falls back to a neighbour, some frozen at speed 0. Playing starts at the saved progress when GAMEOBJECT_ANIMPROGRESS is below 100, then stores 100. States 2, 4, 5 and 7 pause when GAMEOBJECT_FLAGS has 0x80. Every state but 1, 3 and 6 holds the object until its end. Reversing a running open or close at full progress, 2 and 4 or 5 and 7, stores the complement of the elapsed percentage, so the reverse starts where the forward stopped.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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