jollypolly17 Posted March 11, 2020 Posted March 11, 2020 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
Ruffled Pigeon Posted March 13, 2020 Posted March 13, 2020 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()
Recommended Posts
Archived
This topic is now archived and is closed to further replies.