As a segue into the special cases section that processes auxiliary objects, you will have to set up the ChestLid. It has four states: out of scene (never used), 0; closed and locked, 1; closed and unlocked, 2; and open, 3. When the key is inserted and turned, it transitions the lid to state 2 without animation. When the key is removed, it transitions the lid into state 1 without animation. When the player picks the lid in state 2, it animates open, transitioning to state 3. Good, so far. The problem comes when the player picks it again, transitioning it to state 2, closed and unlocked, because this time, it needs to animate closed. Last time it was transitioned to state 2, from state 0, it had no animation played. So this is one of the times the transition into a state acts differently, depending on what object initiated the transition.