As per Arma discord discussion this might not be intentional/desirable behavior.
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- N/A
- Operating System
- Windows 10 x64
- Category
- Scripting
Steps To Reproduce
0. Load and start any SP mission (with a way to have console available) or scenario/temporary mission in Eden
- Execute from console:
(findDisplay 46) displayAddEventHandler ["KeyDown", { params ["_display","_key","_shift","_ctrl","_alt"]; _return = false; switch (_key) do { case (0xC7): { if (_ctrl) then { [] spawn { systemchat str diag_tickTime; _return = true; }; }; }; }; _return }];
- Hit CTRL+HOME
- Notice the chat output
- ESC Menu
- Restart the mission
- Notice CTRL+HOME still producing the output
Additional Information
The addEH is not stored in savegames it seems.
Event Timeline
This comment was removed by Tenshi.
Comment Actions
If the mission display is not closed, then the eventhandler staying is indeed intentional.
Usually it does close between missions though, but "restart" specifically might indeed not.