jalingon3011 Posted November 15, 2018 Posted November 15, 2018 The SexLab Aroused Idle mod enables you to have different idle animations based on your arousal level (Link Below). Since SexLab already have expressions, I would like to add a feature that, when your arousal reaches certain level, not only your idle animation changes but your default expression also changes (to one of the SexLab expressions). I am only a novice at scripting. Upon looking through the script files, I noticed this part in BB_ArousedSexyIdlesAliasScript.psc: Scriptname BB_ArousedSexyIdlesAliasScript extends ReferenceAlias BB_ArousedSexyIdlesQuestControlScript Property Mod Auto GlobalVariable Property Threshold1 Auto GlobalVariable Property Threshold2 Auto GlobalVariable Property Threshold3 Auto Faction Property sla_Arousal Auto Event OnInit() SetCustomAnimations() endEvent Function SetCustomAnimations() Actor thisActor = GetRef() as Actor if (thisActor != None) bool IsSexLabFemale = false if (SexLabUtil.GetGender(thisActor) == 1) IsSexLabFemale = true endif zadLibs myzadLibs = Quest.GetQuest("zadQuest") as zadLibs if (myzadLibs == None) || (myzadLibs.GetWornHeavyBondageInstance(thisActor) == None) int Arousal = thisActor.GetFactionRank(sla_Arousal) if IsSexLabFemale && (Arousal > Threshold3.Value) thisActor.SetAnimationVariableInt("FNIS_NPC_SingleIdle", 1) FNIS_aa.SetAnimGroup(thisActor, "_mtidle", Mod.mtidle_base, 2, "ArousedSexyIdles", true) elseif IsSexLabFemale && (Arousal > Threshold2.Value) thisActor.SetAnimationVariableInt("FNIS_NPC_SingleIdle", 1) FNIS_aa.SetAnimGroup(thisActor, "_mtidle", Mod.mtidle_base, 1, "ArousedSexyIdles", true) elseif IsSexLabFemale && (Arousal > Threshold1.Value) thisActor.SetAnimationVariableInt("FNIS_NPC_SingleIdle", 1) FNIS_aa.SetAnimGroup(thisActor, "_mtidle", Mod.mtidle_base, 0, "ArousedSexyIdles", true) else thisActor.SetAnimationVariableInt("FNIS_NPC_SingleIdle", 0) FNIS_aa.SetAnimGroup(thisActor, "_mtidle", 0, 0, "ArousedSexyIdles", true) endif endif endif endFunction I know that I'm probably should add lines that play expressions under the bold lines but I don't know what to add. Can anyone help me on this? Thank you in advance. Mod Link:
jalingon3011 Posted December 9, 2018 Author Posted December 9, 2018 If anyone have any knowledge or thoughts of how these things work, or a direction you can point to, please help, thanks.
Ed86 Posted December 11, 2018 Posted December 11, 2018 you should probably look at SexLabFramework.psc function ApplyPreset(Actor ActorRef, int[] Preset) add property for sexlab and call something like where you need actor and preset, can probaly find those in sexlab mcm sexlab.ApplyPreset(Actor ActorRef, int[] Preset) or maybe just OpenMouth(Actor ActorRef) and CloseMouth(Actor ActorRef)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.