TommInfinite Posted March 4, 2017 Share Posted March 4, 2017 Is there any way to detect if user's in the main menu (Haven't loaded the game yet\Exited to main menu) and not in Pause menu (if you press "Escape" during gamemode)? Both return 1013. Link to comment Share on other sites More sharing options...
Athelbras Posted March 4, 2017 Share Posted March 4, 2017 (edited) See these links ... Menu Mode, http://geck.bethsoft.com/index.php?title=MenuMode Menu Mode functions, http://geck.bethsoft.com/index.php?title=MenuMode_(Function) Be sure to read the associated Notes sections. Some can be problematic, others are reliable. When used, test rigorously. Edited March 4, 2017 by Athelbras Link to comment Share on other sites More sharing options...
Ladez Posted March 4, 2017 Share Posted March 4, 2017 (edited) begin MenuMode 1013 if (GetGameRestarted) ;returns true only once per session, so this must be the main menu ;do stuff endif end As for exiting to main menu, I'm not sure why, but I've heard that doing this is a really bad idea. Doesn't sound like something you should actively support. If you really want to though, you could check for visibility of the logo. GetUIFloat "StartMenu/NOGLOW_BRANCH/main_title/visible"No idea how reliable this is. Edited March 4, 2017 by Ladez Link to comment Share on other sites More sharing options...
RoyBatterian Posted March 9, 2017 Share Posted March 9, 2017 Variables are not reinitialized when returning to the main menu, it's a known engine bug. Link to comment Share on other sites More sharing options...
Recommended Posts