Jump to content

Detect animation


Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...