dizietemblesssma Posted July 17, 2021 Share Posted July 17, 2021 In my mod I currently have an ability spell that has as a condition the sleep status of the character. If instead of detecting the sleep status I wanted to detect the 'laying down' animation what would be involved? Is there an event that fires when animation occurs? I ask because some mods alter the character behaviour such that activating a bed or such does not start the sleep dialogue, but merely lays the charcter down, a second activation, then starts the sleep dialogue. Prior to this second activation the sleep status of the character is not 'sleeping'. One such mod is Go To Bed. I wish to alter the behaviour of my mod if such another mod is present. diziet Link to comment Share on other sites More sharing options...
dylbill Posted July 18, 2021 Share Posted July 18, 2021 You can maybe use the OnSit event: https://www.creationkit.com/index.php?title=OnSit_-_Actor which fires whenever an actor enters a furniture. Then you'd have to somehow detect if the furniture is a bed Link to comment Share on other sites More sharing options...
dizietemblesssma Posted July 19, 2021 Author Share Posted July 19, 2021 I hadn't registered that OnSit applied to laying down on beds.:)Which is a useful idea, because I eventually worked out how to detect an animation, but I discovered that the animation I was looking for (IdlebedEntertosleep) didn't get detetced until the end of all the separate animations that constituted the sitting and twisting and stuff!Will Onsit also apply to bedrolls?Is it possible that mod added items might not register this event?And thanks:) diziet Link to comment Share on other sites More sharing options...
dylbill Posted July 20, 2021 Share Posted July 20, 2021 OnSit should work for any furniture that's activated. It works for workbenches and forges too. Although you can test yourself to make sure :) Link to comment Share on other sites More sharing options...
dizietemblesssma Posted July 20, 2021 Author Share Posted July 20, 2021 Right! Thankyou:) diziet Link to comment Share on other sites More sharing options...
Recommended Posts