_SCAR 139 Posted September 30, 2017 Is there a way to have an event fired when a user opens the pause menu? There's the onPauseScript in Description.ext but I need this from a module.. Thank you, _SCAR. Share this post Link to post Share on other sites
marceldev89 89 Posted September 30, 2017 https://community.bistudio.com/wiki/User_Interface_Event_Handlers should sort you out. :) 1 Share this post Link to post Share on other sites
_SCAR 139 Posted September 30, 2017 3 hours ago, marceldev89 said: https://community.bistudio.com/wiki/User_Interface_Event_Handlers should sort you out. :) Right, listening for the ESCAPE key which is what I am already doing... Was hoping for something better :) Thanks, _SCAR Share this post Link to post Share on other sites
pierremgi 4902 Posted September 30, 2017 not the key, the display 49 (interrupt). Depending on what you intend to do with. Example: 0 = [] spawn { waitUntil {!isnull findDisplay 49}; (findDisplay 49) displayAddEventHandler ["mouseMoving", {player setDammage 1}] }; or, even: addMissionEventHandler ["eachframe", { if (!isnull findDisplay 49) then {player setDammage 1} }]; 1 Share this post Link to post Share on other sites
Unknown_GTX 36 Posted September 30, 2017 7 hours ago, _SCAR said: Is there a way to have an event fired when a user opens the pause menu? There's the onPauseScript in Description.ext but I need this from a module.. Thank you, _SCAR. you can go this way: [] spawn { while {true} do { waitUntil {!isNull (findDisplay 49)}; // wait until pause-screen opened //your code waitUntil{isNull (findDisplay 49)}; // wait until pause-screen closed }; }; 1 Share this post Link to post Share on other sites