Jump to content

[modding] script-detecting (avoiding) actors reserved for animation by sexlab


Recommended Posts

I would like for my mod to avoid actors which are sexlab animating, or reserved for animation. I'm sure there is some faction or keyword or some other method of marking them, any quick pointers?

 

More general, is there a sexlab wiki or documentation for modders? I wasn't able to identify it.

 

Thx!

Link to comment
52 minutes ago, Scrab said:

Function: IsActorActive(Actor myActor)

 

Any idea why this

 

if IsActorActive(target) ; target is an actor
    debug.messagebox("Hanging actors while sexlab animating is blocked")
    Return 
endif 

 

Returns this?

 

cannot call the member function IsActorActive alone or on a type, must call it on a variable

 

 

Link to comment

Because you have to get the script (SexLabFramework) where the function is located as property of your own script.

SexLabFramework Property SexLab Auto

If (SexLab.IsActorActive(target))
	Debug.Messagebox("Actor active in SL scene")
    return
EndIf

 

Then fill the property within the CK with the SL quest and it should work

Link to comment
28 minutes ago, Mister X said:

Then fill the property within the CK with the SL quest and it should work

 

Ok, I was trying import SexLabFramework at the start of the script, I did not realize it's a quest script. 

 

Indeed, your solution compiles, thank you

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use