A random name Posted September 19, 2018 Posted September 19, 2018 I am trying to make a mod that will apply a different texture if sex is engaged with an animal than if it is with a human, how is it determined what is used.
A random name Posted September 23, 2018 Author Posted September 23, 2018 but how does it detect which kind? like anal, oral, etc
WaxenFigure Posted September 23, 2018 Posted September 23, 2018 1 hour ago, A random name said: but how does it detect which kind? like anal, oral, etc It uses the tags for the sex act. If the tags say "vaginal" then those get applied, if the tag have multiple such as "Oral, Anal" then cum is applied to all. If you want to get the tags then you need to use the events sent out by Sexlab so you can examine the tags yourself. In your case you'll want to subscribe to catch orgasm event notifications so you can apply your own cum.
A random name Posted September 24, 2018 Author Posted September 24, 2018 How do I check the events? @WaxenFigure
WaxenFigure Posted September 24, 2018 Posted September 24, 2018 46 minutes ago, A random name said: How do I check the events? @WaxenFigure I did it like this: Spoiler event OnInit() parent.OnInit() ; Don't forget to call the parent! ; Register for Sexlab Events ;Debug.Notification("SLAS - Initialization") ;Debug.Trace("SLAS - Initialization") RegisterForModEvent("AnimationStart","SLAS_SexIsStarting") RegisterForModEvent("AnimationEnding","SLAS_SexIsEnding") endEvent event OnGameReload() parent.OnGameReload() ; Don't forget to call the parent! ;Debug.Notification("SLAS - Game reloaded - re-registering events") ;Debug.Trace("SLAS - Game reloaded - re-registering events") ; Register for Sexlab Events UnRegisterForModEvent("AnimationStart") UnRegisterForModEvent("AnimationEnding") RegisterForModEvent("AnimationStart","SLAS_SexIsStarting") RegisterForModEvent("AnimationEnding","SLAS_SexIsEnding") endEvent event SLAS_SexIsStarting(string eventName, string argString, float argNum, form sender) Actor[] actorList = SexLab.HookActors(argString) sslThreadController controller = SexLab.HookController(argString) sslBaseAnimation anim = SexLab.HookAnimation(argString) If PlayerInvolved && Sexlab.GetPlayerController() != controller ;Debug.Notification("SLAS Not player involved") ;Debug.Trace("SLAS Not player involved") Return endIf if actorList.Length > 1 int i = 0 while (i < actorList.Length) CheckForTransparency(Actorlist[i]) i += 1 endWhile endIf endEvent event SLAS_SexIsEnding(string eventName, string argString, float argNum, form sender) Actor[] actorList = SexLab.HookActors(argString) sslThreadController controller = SexLab.HookController(argString) sslBaseAnimation anim = SexLab.HookAnimation(argString) if actorList.Length > 1 int i = 0 while (i < actorList.Length) if ActorList[i].GetFactionRank(SLAS_ActorIsTransparent) == 1 SetActorSolid(Actorlist[i]) endIf i += 1 endWhile endIf endEvent
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now