gooser Posted March 14, 2014 Posted March 14, 2014 In the SL API what is the best way to tell which female actor in a FF animation is in which position, assuming a strap-on is NOT being used? Thanks!
Ashal Posted March 15, 2014 Posted March 15, 2014 If it's traditionally a male + female animation without a strapon (pretty much just the foreplay animations) int Position = Thread.GetPosition(ActorRef) Will return the location of the actor in the animation, 0-4. For all default sexlab animations the female is always listed first, so position 0 is female and position 1 is male is a safe bet, but not guaranteed. The only exceptions where position 1 isn't male is on Arrok Tricylce animation, lesbian animations, and creature animations. If you want to be paranoid or account for that stuff: int Position = Thread.GetPosition(ActorRef) bool InMalePosition = Thread.Animation.MalePosition(Position) MalePosition(int index) on sslBaseAnimation will return true/false if the given position index is flagged as a male position. There is also sslBaseAnimation.FemalePosition(int index) and sslBaseAnimation.CreaturePosition(int index) for the other possible positions. sslBaseAnimation.GetGender(int index) will also return the positions expected gender as the appropriate int flag instead of a bool, which would really only be useful if you need to check for each gender and want to optimize away the extra calls to each of the other functions.
gooser Posted March 16, 2014 Author Posted March 16, 2014 If it's traditionally a male + female animation without a strapon (pretty much just the foreplay animations) int Position = Thread.GetPosition(ActorRef) Will return the location of the actor in the animation, 0-4. For all default sexlab animations the female is always listed first, so position 0 is female and position 1 is male is a safe bet, but not guaranteed. The only exceptions where position 1 isn't male is on Arrok Tricylce animation, lesbian animations, and creature animations. If you want to be paranoid or account for that stuff: int Position = Thread.GetPosition(ActorRef) bool InMalePosition = Thread.Animation.MalePosition(Position) MalePosition(int index) on sslBaseAnimation will return true/false if the given position index is flagged as a male position. There is also sslBaseAnimation.FemalePosition(int index) and sslBaseAnimation.CreaturePosition(int index) for the other possible positions. sslBaseAnimation.GetGender(int index) will also return the positions expected gender as the appropriate int flag instead of a bool, which would really only be useful if you need to check for each gender and want to optimize away the extra calls to each of the other functions. Well, that helps some other questions I had about the ways to check for those things. But for the strictly Lesbian, non-strap-on animations, there really isn't a way to tell which female is in which position, correct? To be specific, Arrok Lesbian, or Zyn Lesbian, how would I know who is performing oral on the other woman?
Ashal Posted March 16, 2014 Posted March 16, 2014 There is no built in method of checking something like that, as SexLab doesn't store any information like that about the animations. You would have to look at the animation itself as it plays and check which position index the user is in, then take that number and code in a special use case. Something like if Thread.Animation.Name == "Arrok Lesbian" && Thread.GetPosition(ActorRef) == 0 ; // ActorRef is performing the oral endIf I have no idea if position 0 in that animation is the one giving oral mind you, just an example of doing a special use case. Easiest way to check would be entering something like "Player.sae Arrok_Lesbian_A1_S1" into the console to play the position 0 animation on the player.
gooser Posted March 16, 2014 Author Posted March 16, 2014 Thanks, Ashal. I thought as much. Reading http://git.loverslab.com/sexlab/framework/wikis/actor-functions I don't see a function like "HasStrapon()" for sslActorAlias. Is there a way to detect if an actor has an active strap-on?' Thanks!
Ashal Posted March 16, 2014 Posted March 16, 2014 There is a HasStrapon() in sslActorLibrary, but I never bothered to put an accessor to it in SexLabFramework, either because of laziness or thinking it wouldn't be very useful. You can still access it via SexLab.ActorLib.HasStrapon(Actor ActorRef) I don't see it being very useful in this case however. No FF animations use a strapon, the only instances currently where strapons are used is a female in male position that doesn't explicitly turn off strapons (such as foreplay animations), so checking for a female actor to be in a male position using the animations MalePosition() would be your best bet if you want to deal with strapons. Especially considering HasStrapon() is kind of a costly function if the user has multiple strapon mods enabled; as it has to loop through all enabled strapons until it finds one the actor has equipped. Minor with the just default packaged strapon, semi-intensive with mods that add a lot of strapons like futa equippable.esp or skyrim_strap_ons.esp.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.