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.




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

Or for something event based.

RegisterForModEvent("SexLabInstalled", "InitDone")

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

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

Link to comment


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

  • Recently Browsing   0 members

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