Jump to content

How to get animations name from current sslBaseAnimation[] ? (solved)


Recommended Posts

Posted

Hi ..  is there easy way. (function) to get animations name list... from ccurrent sslBaseAnimations[]?

 

What I currently planning is...

I made simple script, which start sexlab animations by dialogue... witch use  tags ( stirng = tagnames)   (set in  mcm), 

so it can start animation which only have tags (selected in MCM ),  at current after I start animation  (sslBaseAnimations[] anims), 

I  use sexlab tools change animation key.. then (I customize it, it force stage as 0 ) select one animation..

 

the part of code is like this

Spoiler
if atag[0]=="notag"
    Sexlab.Quickstart(AkSpeaker, PlayerRef)
    Debug.MessageBox("start normal animation!!!")
else
    int x = 1
    tagnames = atag[0]
    while(x <=4 && atag[x] != "notag")
        tagnames = tagnames + "," + atag[x]
        x = x+1
    Endwhile
    Debug.MessageBox("selected tags>>" + tagnames)
    sslBaseAnimation[] anims = SexLab.GetAnimationsByTags(2, tagnames, RequireAll=True)
    SexLab.StartSex(acts, anims, Victim=akSpeaker)
    Debug.MessageBox("start animation!!!")

 

 

ideally.. when I start animation  with selected tags.. I may hope to select animation from list >>> start animation..

I am thinking  to  use skyuilib (it seems more easy than UIextension..  to show one  list and select "animation name")..

 

Though I think there should be another way.. but  I already have sslBaseAnimations[]... so I hope to use it to get animation names from current sslBaseAnimations[].

then I will show each animation anme string array in list >> select animation >> start animation..

so my question is...  how to get animation name as list... from current sslBaseAnimations[]?

 

eg.....can I get string,, by anim[0].getAnimName() etc??  what property or function can be used to get each animation name in the sslBaseAnimation[] ?

 

======
I could find, function in sslAnimationSlots

String [] Animnames = AnimSlots.GetNames(anims)	
Debug.MessageBox("show animlist>>" + animnames)

it seems worked...

 

Archived

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

  • Recently Browsing   0 members

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