Jump to content

Items stolen flag


Recommended Posts

I've used a similar function to detect when the container is closed:

 

Event OnActivate(ObjectReference akActionRef) 
    If akActionRef == Game.GetPlayer() 
        Debug.Notification("Container opened") 
        RegisterForMenu("ContainerMenu")
    Endif 
EndEvent 

Event OnMenuClose(String menuName) 
    If menuName == "ContainerMenu" ;this condition is only necessary if registering multiple menus. 
        Debug.Notification("Container Closed") 
        UnRegisterForMenu("ContainerMenu") 
    Endif 
EndEvent
Link to comment
Share on other sites

  • Replies 44
  • Created
  • Last Reply

Top Posters In This Topic

Aggg... I'd test this but had 'Event OnActivate()' this seems not work ???

changed it to 'Event OnActivate(ObjectReference akActionRef)' as you have and now it works :)

 

Off to package everything up and release it... Nexus page ready to go just waiting for the new package.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...