Long version, I'm just about done with the See You Sleep mod, and I'm working on a feature which detects if the player was in first person when activating the bed, which calls my cool functions and shows the player sleeping in the bed. However when they wake up I have to restore the camera to first person, and currently I'm useing a crude wait feature of 7 seconds to put the camera back in first person, which is about how long it takes to crawl out of bed. However, various beds have various times getting up, so it's not perfect.
I'd like to detect when the player is idle or ready to move around again, or when its not playing the get out of bed animation state, either way would work for me, at that point I re-enable player controls and force first person back on the player.
