Jump to content

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


Recommended Posts

Posted

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!

Posted
7 minutes ago, SAC said:

documentation for modders

 

SexLabFramework.psc

 

Keyword: SexLabActive

Function: IsActorActive(Actor myActor)

Posted
5 minutes ago, Scrab said:

 

SexLabFramework.psc

 

Keyword: SexLabActive

Function: IsActorActive(Actor myActor)

 

Thank you very much indeed!

 

Posted
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

 

 

Posted

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

Posted
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

 

Archived

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

  • Recently Browsing   0 members

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