zaira Posted April 26, 2016 Posted April 26, 2016 I don't know what I am doing wrong - I wan't to play an animation where one actor shall remains dressed. This is how I try to do it - but it doesn't work (by the way - I also want that the dressed player doesn't moan): sslBaseAnimation[] anims anims = new sslBaseAnimation[1] anims[0] = SexLab.GetAnimationByName("$ZazAP_PilloryTorment02") sslThreadModel thread = SexLab.NewThread() thread.AddActor(PlayerRef) thread.AddActor(sexPartner) thread.DisableUndressAnimation(PlayerRef) thread.DisableUndressAnimation(sexPartner) thread.CenterOnObject(myObject) thread.SetAnimations(anims) thread.SetStrip(sexPartner,Utility.CreateBoolArray(33)) thread.SetHook("SlaveSex") thread.SetVoice(sexPartner,none,true) thread.VictimRef = none thread.IsAggressive = true thread.SetBedding(0) thread.DisableBedUse() thread.StartThread()
Guest Posted April 26, 2016 Posted April 26, 2016 Just add: Bool[] noStrips = new Bool[33] int i=33 while i i-=1 noStrips[i]= true ; "or false, depending on what you want to force" endWhile ...your code... thread.SetStrip(sexPartner, noStrips) thread.DisableUndressAnimation(sexPartner, true) ...your code... thread.StartThread()
zaira Posted April 26, 2016 Author Posted April 26, 2016 Just add: Bool[] noStrips = new Bool[33] int i=33 while i i-=1 noStrips[i]= true ; "or false, depending on what you want to force" endWhile ...your code... thread.SetStrip(sexPartner, noStrips) thread.DisableUndressAnimation(sexPartner, true) ...your code... thread.StartThread() The bool array must contain true for non-stripping? That sounds strange : SetStrip(actor,[true,true,true...]) Are you sure? thread.DisableUndressAnimation(sexPartner, true) true is default - that's why I didn't set this parameter in my call So you mean I have to set this? thread.SetStrip(sexPartner,Utility.CreateBoolArray(33,true))
zaira Posted April 26, 2016 Author Posted April 26, 2016 This is really stupid: Utility.CreateBoolArray(33) creates a bool array where every boolean is true Next problem - howto get rid of the moaning? SetVoice was ignored
Guest Posted April 26, 2016 Posted April 26, 2016 I don't remember if the bool array has to be false or true. Bu for sure I had hard time to array created with the skse function when they were boolean. The had random values inside. So better to initialize it explicitly. Has the value to be True or False? Sorry I don't remember. That is a snippet of code from a mod of mine that does it: if dontUndress(sceneTs[sceneIndex]) t.SetStrip(sceneTs[sceneIndex], noStripsT) t.DisableUndressAnimation(sceneTs[sceneIndex], true) endIf Where "sceneTs[sceneIndex]" is an Actor and t is the sslThreadModel.
zaira Posted April 26, 2016 Author Posted April 26, 2016 Well - the Problem was the bool array... Thank you
Recommended Posts
Archived
This topic is now archived and is closed to further replies.