Jump to content

I dont understand why compiling but no result


Recommended Posts

Posted

in Creation kit i made that

 

actor theActor = TalkerRef.GetActorReference()
actor[] sexActors = new actor[2]
sexActors[0] = PlayerRef
sexActors[1] = theActor
sslBaseAnimation[] anims
anims = 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 1
Scriptname TIF__08015B9F Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
actor theActor = TalkerRef.GetActorReference()
actor[] sexActors = new actor[2]
sexActors[0] = PlayerRef
sexActors[1] = theActor
sslBaseAnimation[] anims
anims = SexLab.GetAnimationsByTag(2,"Vaginal""Aggressive")
SexLab.StartSex(sexActors,anims)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

Actor Property PlayerRef  Auto  

ReferenceAlias Property TalkerRef  Auto  
SexLabFramework property SexLab auto

 

but I have not animation working in game

Posted

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
 
Posted

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.

 

Posted

You welcome, let me know if the other items are OK. (Using empty tags it is not always a good idea.)

Posted

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.

 

Posted

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

Posted

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.)

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...