Jump to content

OnMenuOpenCloseEvent


Recommended Posts

For the life of me I cannot figure out what I am doing wrong...

Scriptname Test extends Quest Const

Event OnQuestInit()
  RegisterForMenuOpenCloseEvent("LockpickingMenu")
  Debug.Trace("The Quest Fired!!")
EndEvent
 
Event OnMenuOpenCloseEvent(string asMenuName, bool abOpening)
    If (asMenuName== "LockpickingMenu")
        If (abOpening)
	    Debug.Trace("Joy!!")
        EndIf
    EndIf
EndEvent

I have tried without parenthesis, if abOpening == false and using almost every "MenuType"

The Quest fires but still no Joy.

 

Any help would be appreciated.

Link to comment
Share on other sites

I haven't used it with the lockpickingmenu yet, so I can't confirm, but there's always a chance the CK site has it incorrect. Try lockpickmenu without the ing, or try a different menu to make sure your code is good and firing in the right place (it looks good, but clearly you're having no luck so we've gotta test basic things).

Link to comment
Share on other sites

  • Recently Browsing   0 members

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