Jump to content

Recommended Posts

I'm having some trouble using the AddCustomBed function in SexLabFramework. The script I'm using is below. The .AddCustomBed lines always return False, and I don't know why.

 

 

Scriptname CDC_INIT extends Quest Hidden

Actor Property PlayerRef Auto
SexLabFramework SexLab
Furniture Property CDC_Bedroll Auto
Form Property CDC_BedrollToken Auto

Event OnInit()
    SexLab = ((Game.GetFormFromFile(0x00000D62, "SexLab.esm") As Quest) as SexLabFramework)
    Debug.Notification(SexLab.AddCustomBed(CDC_Bedroll, 1) )
    Utility.Wait(1) 
    If SexLab.AddCustomBed(CDC_Bedroll, 1)        
        Debug.Notification("Bedroll initialised")
        PlayerRef.AddItem(CDC_BedrollToken,1)
    Else
        Debug.Notification("Bedroll initialisation failed")
    EndIf
EndEvent

 

CDC_Bedroll exists and is correct, since the property line is copied from another script that does work (this whole thing is adapted from the SimpleBedroll mod, if anyone cares). I've tried changing it from Furniture to Form with no difference. So far as I can tell, the SexLab variable is also correct (putting it in the .Notification line returned [sexlabframework, which seems about right?).

 

I'm using SexLab Framework v1.63 Beta 8.

 

Presumably I'm doing something stupid (for which I will cheerfully blame Skyrim, because I'm petty like that). Can anyone help?

 

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