Zorkaz Posted September 21, 2021 Share Posted September 21, 2021 Does anyone know what the Register and Event is for when the Workshop mode is being entered? And exited? Link to comment Share on other sites More sharing options...
SKKmods Posted September 21, 2021 Share Posted September 21, 2021 One would hope that it was as simple as Event OnMenuOpenCloseEvent(string asMenuName, bool abOpening) on "WorkshopMenu" but I found that unreliable so had to hand roll a more complicated solution; WorkshopScript[] WorkshopREFs = (pWorkshopParent as WorkshopParentScript).Workshops Int iIndex = 0 While (iIndex < WorkshopREFs.Length) Self.RegisterForRemoteEvent(WorkshopREFs[iIndex] , "OnWorkshopMode") iIndex +=1 Endwhile This needs to run every OnPlayerLoadGame to include any DLC and mod added registered workshops. Event ObjectReference.OnWorkshopMode(ObjectReference ThisWorkshopRef, bool bStart) ;do stuff EndEvent If you also need to trap standalone non registered workshops then you need to detect their object references (many different ways to do that) and add registrations for them. Link to comment Share on other sites More sharing options...
Zorkaz Posted September 22, 2021 Author Share Posted September 22, 2021 Thx. Maybe I'll find some other more primitive solution for my workshop camera idea but at least I have something Link to comment Share on other sites More sharing options...
Recommended Posts