Jump to content

[SOLVED] Accessing sslThreadController functions


Recommended Posts

Posted

Hello,

I'm trying to swap actor positions during a sexlab animation based on the value of a custom variable.

The function responsible for actor swapping is named ChangePositions() in the sslThreadController script, but I don't know how I can access it in my custom script. If I try Importing the sslThreadController script in my own script and apply ChangePositions() during an Event, I get this error message during compilation : "Cannot call the member function ChangePositions alone or on a type, must call it on variable". However, it is called alone in sslThreadController in the OnKeyDown Event.

 

Would appreciate some advice. Thanks

Posted

You have to call it on a Thread I'm pretty sure.

So get the Thread through some SexLab Event, make a sslThreadController variable and then call it on that.

 

sslThreadController myThread = The Thread you got from for example the AnimationStart Event

myThread.ChangePositions()

Archived

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

  • Recently Browsing   0 members

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