Jump to content

[LE] Getting the game to recognize the Story Manager LockPick Event


Recommended Posts

It seems to work, finally! 100% of the time. Thanks for all your help! How could I add a condition for it to only run on locked containers though? It even runs when I lock pick a door to a new cell. Tried looking up possible papyrus conditions but I haven’t found a result so far.
Link to comment
Share on other sites

  • Replies 43
  • Created
  • Last Reply

Top Posters In This Topic

Glad it's working! GetType will work, but you could check by casting as Container also. Like so:

 

Scene property SDA_LockpickingScene Auto

Event OnInit()
    RegisterForMenu("Lockpicking Menu")
EndEvent

Event OnMenuClose(String menuName)
    ObjectReference LockRef = Game.GetCurrentCrosshairRef()
    
    If (LockRef.IsLocked() == false) && (LockRef.GetBaseObject() As Container)
        Utility.Wait(1)
        Debug.Notification("Lock Picked")
        SDA_LockpickingScene.Start()
    EndIf 
EndEvent
Edited by dylbill
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...