kxdace Posted April 21, 2020 Posted April 21, 2020 I am trying to make it so that the sex animation changes at stage 3. What am I doing wrong? All the debug message boxes trigger so I know the games reading the code but it never performs the desired swap. Scriptname wrScriptBRB_SexTestD extends ObjectReference Actor property chosenNPCA Auto Actor property chosenNPCB Auto SexLabFramework property SexLab auto event OnInit() ;debug.MessageBox("SexTextC Loaded") ;RegisterForModEvent("AnimationEnd", "EndMessage") RegisterForModEvent("StageStart", "StageStartMessage") endEvent Event OnActivate (ObjectReference akActionRef) debug.MessageBox("Animation has started") sslBaseAnimation[] anims1 sslThreadModel Thread1 = SexLab.NewThread() Thread1.addActor(chosenNPCA) Thread1.addActor(chosenNPCB) Thread1.SetAnimations(anims1) Thread1.StartThread() EndEvent Event EndMessage(string eventName, string argString, float argNum, form sender) ;debug.MessageBox("BTNBRBSexTestC - Anim Done") EndEvent Event StageStartMessage(string eventName, string argString, float argNum, form sender) int stage = SexLab.HookStage(argString) debug.MessageBox("We are at stage: " + stage) if stage == 3 debug.MessageBox("Stage Three - Change Animation") sslThreadController Thread1 = SexLab.HookController(argString) sslBaseAnimation[] animsB = new sslBaseAnimation[3] animsB[0] = SexLab.GetAnimationByName("Arrok Cowgirl") animsB[1] = SexLab.GetAnimationByName("4uDIK Cowgirl") animsB[2] = SexLab.GetAnimationByName("Leito Cowgirl") sslBaseAnimation cowgirl = SexLab.GetAnimationByName("Arrok Cowgirl") Thread1.SetForcedAnimations(animsB) endIf EndEvent
Recommended Posts
Archived
This topic is now archived and is closed to further replies.