Jump to content

Sexlab, hooks, and me


Recommended Posts

Heya. So, I'm trying to write some script using sexlab. I was wondering if someone could explain hooks to me a bit better, and how to use them?

 

I am using QuickStart() function with all of my threads, as I'd like to stick to using keywords in case a person has SLAL anims active. So, that being said, I have a thread as follows

 

SexLab.QuickStart(Actor1,Actor2,none,none,none,none,"hook","vaginal")

 

I'm trying to figure out how to use the hooks feature - I want to detect when either Actor1 or Actor2 has an orgasm.

 

I am trying RegisterForModEvent(...) but not quite sure if I understand how it works.

 

Any help is appreciated.

 

Here is the script I'm using - I'm using it on a ReferenceAlias attached to a trigger box.

 

Scriptname TriggerBoxSexSceneScript extends ReferenceAlias
{When actor 1 walks inside triggerbox, start a sexlab scene with them and set quest stage}


Actor Property PlayerRef Auto
Actor Property Actor1 Auto
Actor Property Actor2 Auto
SexLabFramework Property sexLab Auto
Quest Property ThisQuest Auto
Int Property StageReq Auto


Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == Actor1 && ThisQuest.GetStage() == StageReq
sexLab.QuickStart(Actor1,Actor2,none,none,none,none,"hook","vaginal")
RegisterForModEvent("OrgasmEnd",OnOrgasmEnd")

endif
EndEvent

Event OnOrgasmEnd(int tid, bool hasPlayer)
if ThisQuest.GetStage() < 10
ThisQuest.SetStage(10)
endif
EndEvent

 

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