Jump to content

How To Tell When Sexlab Is Done Initializing?


Recommended Posts

As the topic says, I'm looking for a script-based method for pinging SexLab to check if / when it's done initializing on a new game (or installation, or whenever).  I already made a brief stab at dissecting the framework to find a method for myself, but I reckon somebody knows what I should be looking for.

 

Thanks.

 

Link to comment
if SexLab.Enabled && SexLab.Threads.Length == 15
 ; // SexLab is most likely initialized.
endIf

Or for something event based.

RegisterForModEvent("SexLabInstalled", "InitDone")

function InitDone(int version)
	Debug.TraceAndBox("SexLab version "+version+" has finished initializing!")
endFunction

In addition to the mod event SexLabInstalled, there is also SexLabUpdated, which sends the same argument.

Link to comment

Archived

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

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use