Nymra Posted April 2, 2021 Posted April 2, 2021 Hey, I want to call the Expressions from Sexlab via Function in another script. I use this Function to call the "SexlabMoan" Function SexlabMoan(actor akActor, sslBaseVoice voice = none) if !voice voice = SexLab.PickVoice(akActor) EndIf voice.Moan(akActor, 100) ;maybe other value required EndFunction and basically would like to create a similar function that calls a random Sexlab Expression that is tagged with "Victim". Since I m pretty exhausted I just hope someone can point it out for me, I tried searching but I have no idea where to start putting this together, sorry. @osmelmc maybe you have an idea
Swe-DivX Posted April 2, 2021 Posted April 2, 2021 SexLabFramework\scripts\Source\sslActorAlias.psc ; Pick an expression if needed if !Expression && Config.UseExpressions Expression = Config.ExpressionSlots.PickByStatus(ActorRef, IsVictim, IsType[0] && !IsVictim) endIf ; Reset expression ActorRef.ClearExpressionOverride()
Swe-DivX Posted April 2, 2021 Posted April 2, 2021 Devious Devices LE 5.0\scripts\Source\zadLibs.psc if teaseOnly expression = SexLab.RandomExpressionByTag("Pleasure") ApplyExpression(akActor, expression, 100, openMouth=true) Sound.StopInstance(vsID) Sound.StopInstance(msID) StopVibrating(akActor) if !silent && akActor == PlayerRef NotifyPlayer("The vibrations abruptly stop just short of bringing you to orgasm.") Endif EdgeActor(akActor) ResetExpression(akActor, expression) SendModEvent("DeviceVibrateEffectStop", akActor.GetLeveledActorBase().GetName(), vibStrength * numVibratorsMult) return -1 EndIf
OsmelMC Posted April 4, 2021 Posted April 4, 2021 @Nymra the PickByStatus() and of course the PickExpression() functions are the default choice but remember that the original Scripts have few errors about the random besides that if you want to change the expression few times those functions take extra time because have to check all the expressions every time are used. I recommend you to use the sslExpressionSlots from my SLU+ and use the GetByStatus() function because besides the fixes that function return a sslBaseExpression[] Array that needs to be called just one time and once storage in a proper variable can be easily selected just with: Expression = ExpressionsArray[ Utility.RamdomInt(0, (ExpressionsArray.Length -1))] Of course to make this work you have to include the sslExpressionSlots file on your Mod. PS: independent from the function used take in consideration that change the expression on a gagged actor force it to temporarily close the mouth so probably also good idea include some condition for that case.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.