Guest Suited Prawns Posted August 20, 2015 Posted August 20, 2015 So I've been working on what I literally call Bland player prostitution. the Blandest, featureless Prostitution mod just so I can familiarize myself with the Sexlab Framework. On to the problem: I've setup a dialogue view with 4 options for different sexual acts. I wrote a shitty script that works, but the problem I have is when I try to use GetAnimationsByTag it gives me the: type mismatch on parameter 1 ;error. Replacing this with GetAnimationByName and using a specific animation works fine. sslThreadModel thread = SexLab.NewThread() thread.AddActor(Game.GetPlayer(), isVictim = false) thread.AddActor(akSpeaker, isVictim = false) sslBaseAnimation[] anims anims = new sslBaseAnimation[1] anims[0] = SexLab.GetAnimationsbyTag("Handjob") thread.DisableLeadIn(true) thread.SetAnimations(anims) thread.SetBedding(0) thread.SetHook("TestingFoo") thread.DisableUndressAnimation(Game.getplayer()) thread.StartThread() Game.GetPlayer().AddItem(Gold001, 15)
WraithSlayer Posted August 20, 2015 Posted August 20, 2015 GetAnimationsByTag's first parameter is the number of actors involved, not the animation tag. The tag is the second parameter. Also, GetAnimationsbyTag will return an animation array with a lot more than just one animation, so you don't want to instantiate the anims array with a size of 1, nor do you want to put the output of GetAnimationsbyTag into anims[0] instead of anims. Here's the fixed code: sslBaseAnimation[] anims anims = SexLab.GetAnimationsbyTag(2, "Handjob")
Guest Suited Prawns Posted August 20, 2015 Posted August 20, 2015 Thank you very much, im really kind of shit at papyrus.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.