Jump to content

Adding custom bed


Recommended Posts

Posted

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?

 

Archived

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

  • Recently Browsing   0 members

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