SewerRats Posted November 14, 2018 Posted November 14, 2018 I'm developing a script for a much larger mod that simply needs to detect the end of sex whenever it ends. This needs to work in all sex scenes, not just ones initiated by my mod, hence why I cannot simply use a hook added prior to starting the sex scene (unless i'm not understanding the concept of hooks properly). I tried to RegisterForModEvent to listen for events related to ending sex: RegisterforModEvent("AnimationEnd", "PlayerHadSex") This didn't work, I may be using the wrong ModEvent but according to the documentation there might not even be a ModEvent that listens for this, only a hook. Any ideas?
WaxenFigure Posted November 15, 2018 Posted November 15, 2018 19 hours ago, SewerRats said: I'm developing a script for a much larger mod that simply needs to detect the end of sex whenever it ends. This needs to work in all sex scenes, not just ones initiated by my mod, hence why I cannot simply use a hook added prior to starting the sex scene (unless i'm not understanding the concept of hooks properly). I tried to RegisterForModEvent to listen for events related to ending sex: RegisterforModEvent("AnimationEnd", "PlayerHadSex") This didn't work, I may be using the wrong ModEvent but according to the documentation there might not even be a ModEvent that listens for this, only a hook. Any ideas? You need to look at the events more closely, the event is "Animation Ending", not "Animation End". That missing "ing" is why it didn't work.
jpee1965 Posted November 17, 2018 Posted November 17, 2018 I think this is the reason why Osex doesn't support prego mods, because of the orgasm hook issue or something. If you can crack it, maybe Osex will work??
zaira Posted November 22, 2018 Posted November 22, 2018 Another possible solution is to check if the actor is in faction SexLabAnimatingFaction - I use this in scene conditions to wait until sex has finished before proceeding with the scene
Recommended Posts
Archived
This topic is now archived and is closed to further replies.