dylbill Posted May 10, 2021 Share Posted May 10, 2021 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 More sharing options...
TheWanderer001 Posted May 10, 2021 Author Share Posted May 10, 2021 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 More sharing options...
TheWanderer001 Posted May 10, 2021 Author Share Posted May 10, 2021 Okay... gone and done it :D https://www.nexusmods.com/skyrimspecialedition/mods/49701/ I'm sure if I missed something someone will quickly let me know. Link to comment Share on other sites More sharing options...
dylbill Posted May 10, 2021 Share Posted May 10, 2021 Cool glad it's working :) I'll have to test it out. Looks like a cool mod! Link to comment Share on other sites More sharing options...
TheWanderer001 Posted May 10, 2021 Author Share Posted May 10, 2021 Glad I got great help from you both (IsHara & dylbill) probably wouldn't have happened without it... so once again thanks for all the help and advice :) Hope a lot of other player think it's cool as well and download it :D Link to comment Share on other sites More sharing options...
Recommended Posts