Jump to content

sexlab hooks


heroko

Recommended Posts

Posted

so iv been trying to get the hooks to work and acording to what iv read then this seem to be right but i keep on getting compiling error

sslThreadModel Thread = SexLab.NewThread()
Thread.AddActor(actor1)
Thread.AddActor(actor2)
Thread.SetHook("TLI")
RegisterForModEvent("HookAnimationEnd_TLI", "myAnimEndEventHandler")
Thread.StartThread()

D:\steam\steamapps\common\Skyrim\Data\Scripts\Source\temp\tli_hook.psc(3,24): no viable alternative at input 'SexLab' D:\steam\steamapps\common\Skyrim\Data\Scripts\Source\temp\tli_hook.psc(3,30): required (...)+ loop did not match anything at input '.' D:\steam\steamapps\common\Skyrim\Data\Scripts\Source\temp\tli_hook.psc(3,15): Unknown user flag SexLab

can somone who knows about this tell me what iv done wrong ?

 

Posted

Add the full source of your script, from the begin to the end.

Posted

that is all

 


Scriptname tli_hook extends TopicInfo  

sslThreadModel Thread = SexLab.NewThread()                               
Thread.AddActor(actor1)                                           
Thread.AddActor(actor2)                                      
 Thread.SetHook("TLI")                                        
 RegisterForModEvent("HookAnimationEnd_TLI", "myAnimEndEventHandler")  
 Thread.StartThread()     

sexlabframework property sexlab auto

 

Posted

that is all

 

Scriptname tli_hook extends TopicInfo  

 

sslThreadModel Thread = SexLab.NewThread()                               

Thread.AddActor(actor1)                                           

Thread.AddActor(actor2)                                      

 Thread.SetHook("TLI")                                        

 RegisterForModEvent("HookAnimationEnd_TLI", "myAnimEndEventHandler")  

 Thread.StartThread()     

 

sexlabframework property sexlab auto

 

Then you have serious problems.

 

All scripts, all of them (fragments or not) need to start with:

Scriptname <somename> extends <something>

 

In case it is a TopicInfo then you are in a fragment, and there should be a function like:

 

Function Fragment_0()

...

endFunction

 

 

And a really bad news: Fragments cannot receive ModEvents. So you cannot hook a SexLab animation into them.

Archived

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

  • Recently Browsing   0 members

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