Talcazzar Posted September 10, 2016 Share Posted September 10, 2016 Greetings fellow scripters; i've recently been hunting for an approach to force-close the pipboy and return to normal gameplay via the scripting engine, but to no avail.I'm now turning to the community for ideas on how this might be accomplished, any ideas appreciated. Link to comment Share on other sites More sharing options...
FrankFamily Posted September 10, 2016 Share Posted September 10, 2016 http://www.creationkit.com/fallout4/index.php?title=DisablePlayerControls_-_InputEnableLayerfollowed by enable might works, it does in skyrim.Or maybe: http://www.creationkit.com/fallout4/index.php?title=EnableMenu_-_InputEnableLayerwhich is new for fo4 Link to comment Share on other sites More sharing options...
Talcazzar Posted September 11, 2016 Author Share Posted September 11, 2016 (edited) Thanks for the reply Frank, i'll do some tests and report back. EDIT: Here is what i tried now, sadly it had no effect. InputEnableLayer myLayer = InputEnableLayer.Create() debug.MessageBox( "Pre" ) myLayer.DisablePlayerControls() utility.WaitMenuMode( 2.0 ) myLayer.EnablePlayerControls() utility.WaitMenuMode( 2.0 ) debug.MessageBox( "Post" ) Any other ideas? Edited September 11, 2016 by Talcazzar Link to comment Share on other sites More sharing options...
shadowslasher410 Posted September 11, 2016 Share Posted September 11, 2016 Try OnMenuOpenCloseEvent combined with RegisterForMenuOpenCloseEvent and UnregisterForMenuOpenCloseEvent. Link to comment Share on other sites More sharing options...
Talcazzar Posted September 12, 2016 Author Share Posted September 12, 2016 I will try that next shadowslasher410, excellent suggestion. Link to comment Share on other sites More sharing options...
Reneer Posted September 12, 2016 Share Posted September 12, 2016 The OnMenuOpenCloseEvent will not do what you want (close the Pipboy menu). It will only tell you when the menu is opened or closed. Link to comment Share on other sites More sharing options...
Talcazzar Posted September 12, 2016 Author Share Posted September 12, 2016 (edited) Yes, there appears to be no way to invoke the event itself. Edited September 12, 2016 by Talcazzar Link to comment Share on other sites More sharing options...
EveningTide Posted September 13, 2016 Share Posted September 13, 2016 (edited) The only way I've been to do it is through a terminal. Have it run from the pipboy and have one of its menu be [Return to To Level] which closes out the pipboy entirely(no animation, etc, and this is supposed to actually take you back to the first terminal if this option is from a 'subterminal'. Might be a bug when a terminal is called via pipboy). But that's not going to work for you for what you need to do. :/ Edited September 13, 2016 by EveningTide Link to comment Share on other sites More sharing options...
Recommended Posts