heroko Posted March 10, 2017 Posted March 10, 2017 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 errorsslThreadModel 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 SexLabcan somone who knows about this tell me what iv done wrong ?
Guest Posted March 10, 2017 Posted March 10, 2017 Add the full source of your script, from the begin to the end.
heroko Posted March 10, 2017 Author Posted March 10, 2017 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
Guest Posted March 10, 2017 Posted March 10, 2017 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.