benilla-re systems structs docs

AnimatedHandlerOnStateChanged

function · objectlayer · primitive

Address
0x5f3cb0 · 237 bytes, up to 0x5f3d9c
Meaning
Picks the moving state for a change of GAMEOBJECT_STATE and plays it
Confidence
verified, proof one
Finding
objectlayer/gameobjecttypes#animation-states

Finding: Animation states in objectlayer: game object types

A family A handler plays one of 13 animation states. A change of GAMEOBJECT_STATE picks a moving state and its end: to 0, state 2 then 3; to 1, 4 then 1; to 2, 5 then 6. It goes straight to the end state when GAMEOBJECT_ANIMPROGRESS is 100 and the old state is not 1 (for 0 and 2) or 0 (for 1); to 1 from 2 it then plays 7. When a played state ends, 2 goes to 3, 4 and 7 to 1, 5 to 6; 0 and the custom states 8 to 11 return to the object's state; 1, 3 and 6 play again. A door collides in state 1, so GAMEOBJECT_STATE 1 is closed.

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.