Jump to content

[Scripting] SexLab Thread not Starting


Recommended Posts

Posted

Hello, 
As stated in the Title im having some troble with getting a Thread to work.
So what I want is a simple kiss scene without Stripping and without Strapon. I made a Debug Dialogue to test it, but nothing is happening. 
So here the Code: 

 

Function Kiss(string hook)
bool Y = False

If (SexLab.Config.UseStrapons == True)
	Y = True
	Sexlab.Config.UseStrapons = False
EndIf

sslThreadModel kiss = SexLab.NewThread()

sslBaseAnimation[] anims 
anims = new sslBaseAnimation[1]
anims[0] = SexLab.AnimSlots.GetbyRegistrar("LeitoKissing")
kiss.SetAnimations(anims)

bool[] strip = new bool[33]
strip[0] = True
	kiss.AddActor(libs.PlayerRef, IsVictim = false)
	kiss.AddActor(Elaniea, IsVictim = false)
	kiss.SetStrip(libs.PlayerRef, Strip)
	kiss.SetStrip(Elaniea, strip)
	kiss.DisableBedUse(true)
	kiss.CenterOnObject(none)
	kiss.SetHook(hook)
	kiss.DisableLeadIn(True)
kiss.StartThread() 

if Y == True 
	SexLab.Config.UseStrapons = True
EndIf
EndFunction

The Debug dialogue has the Following fragment: 

GoOn_Libs Property Glibs  Auto

Glibs.Kiss()

Since im still quite the noob, I used these two posts to make the upper Code and added some stuff I wanted: 

 

Posted

When you say Debug Dialogue do you mean a quest topic? If yes then did you properly use TIF fragment scripting for it? It's not clear from the partial code you posted.

 

In general if something simply doesn't do anything you can try to add some Debug.Notification("I am here.") lines into your code and see if you actually reach those lines of code to narrow down the problem.

Posted
13 minutes ago, Skitskurr said:

When you say Debug Dialogue do you mean a quest topic? If yes then did you properly use TIF fragment scripting for it? It's not clear from the partial code you posted.

 

In general if something simply doesn't do anything you can try to add some Debug.Notification("I am here.") lines into your code and see if you actually reach those lines of code to narrow down the problem.

Yes, I used a TIF fragment for it and just added to Debug you mentioned. I found the Error I let the Hook undefind. This Slipped through because I wrote the Fragment before I decided to change the Function to use a Thread. Still, thank you for replying. 
so the Code above should have been: 

 

GoOn_Libs Property Glibs  Auto

Glibs.Kiss("hook")

 

 

Archived

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

  • Recently Browsing   0 members

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