Jump to content

SexLab - Detecting the end of sex without using hooks?


Recommended Posts

Posted

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?

Posted
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.

Posted

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??

Posted

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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