GlassHeart Posted August 7, 2015 Posted August 7, 2015 in Creation kit i made that actor theActor = TalkerRef.GetActorReference()actor[] sexActors = new actor[2]sexActors[0] = PlayerRefsexActors[1] = theActorsslBaseAnimation[] animsanims = SexLab.GetAnimationsByTag(2,"Vaginal", "Aggressive")SexLab.StartSex(sexActors,anims) Compiling in : ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 1Scriptname TIF__08015B9F Extends TopicInfo Hidden;BEGIN FRAGMENT Fragment_0Function Fragment_0(ObjectReference akSpeakerRef)Actor akSpeaker = akSpeakerRef as Actor;BEGIN CODEactor theActor = TalkerRef.GetActorReference()actor[] sexActors = new actor[2]sexActors[0] = PlayerRefsexActors[1] = theActorsslBaseAnimation[] animsanims = SexLab.GetAnimationsByTag(2,"Vaginal", "Aggressive")SexLab.StartSex(sexActors,anims);END CODEEndFunction;END FRAGMENT;END FRAGMENT CODE - Do not edit anything between this and the begin commentActor Property PlayerRef Auto ReferenceAlias Property TalkerRef Auto SexLabFramework property SexLab auto but I have not animation working in game
Guest Posted August 7, 2015 Posted August 7, 2015 OK. Let's try this. First I think "TalkerRef" is the person you are talking with. You don't actually need it, akSpeaker is the actor you are speaking with. Now, in your code, try something like: actor[] sexActors = new actor[2] sexActors[0] = PlayerRef sexActors[1] = akSpeaker sslBaseAnimation[] anims = SexLab.GetAnimationsByTags(2,"Vaginal", "Aggressive", false) ; "Use getAnimationsByTags with a S at the end" Debug.notification("Found " + anims.length + " animations" int res = SexLab.StartSex(sexActors,anims) if res==-1 Debug.Notification("Something went wrong, check the papyrus log for more info.") endIf
GlassHeart Posted August 7, 2015 Author Posted August 7, 2015 Ok 0 animations Found but i have rerun FNIS for moder and fnis users other mod work normaly (animated)
Guest Posted August 7, 2015 Posted August 7, 2015 OK, try to do a step by step: 1) SexLab.GetAnimationsByTags(2, "") 2) SexLab.GetAnimationsByTags(2,"Vaginal") 3) SexLab.GetAnimationsByTags(2,"Vaginal", TagSuppress="Aggressive") 4) SexLab.GetAnimationsByTags(2,"Vaginal", TagSuppress="Aggressive", RequireAll=False) Let me know if still don't find any anim.
Guest Posted August 7, 2015 Posted August 7, 2015 You welcome, let me know if the other items are OK. (Using empty tags it is not always a good idea.)
Guest Posted August 7, 2015 Posted August 7, 2015 You sure you set the propert SexLab in your script (inside the TopicInfo) ? There should be a script called TIF__08015B9F on the lower right panel of the Topic Info. Select it, go in the Properties and be sure SexLab property is not empty.
GlassHeart Posted August 7, 2015 Author Posted August 7, 2015 Properties for script TIF__08015B9F attached to (08015B9F) Property name type value PlayerRef actor defaut sexlab sexlabframework defaut TalkerRef ReferenceAlias defaut Is good panel? i not sure
Guest Posted August 7, 2015 Posted August 7, 2015 It is the good panel. But all the properties are empty. PlayerRef should be PlayerRef as value (click on auto fill for it) Click on SexLab, edit the property and pick the only possible value (SexLabFramework) If you are using the code I give you before, you don't need anymore TalkerRef. If you still want it, then you have to fill it with a ReferenceAlias (but I have no idea of the value you want to pick here.)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.