Silver437 Posted November 12, 2019 Share Posted November 12, 2019 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now