adding an displayAddEventHandler via .sqf file or debug consol and restarting mission from ingame the displayAddEventHandler's are not removed/deleted from the Button and in some cases are duplicated after every restart.
Description
Description
Details
Details
- Severity
- Tweak
- Resolution
- Won't Fix
- Reproducibility
- Always
- Operating System
- Windows 10
- Category
- Scripting
Steps To Reproduce
- start a test mission
- try with this code from debug consol for example: pressing Space Key will show a text
[] spawn { disableSerialization; waituntil {!isnull (finddisplay 46)}; _chat = (findDisplay 46) displayAddEventHandler ["KeyUp", { params ["_display", "_key", "_shift", "_ctrl", "_alt"]; if (_key == 57) then { systemChat "This DAddEventHandler should be removed/deleted after SP Mission Restart"; }; }]; };
- restart game from menu and press Space key again
Event Timeline
Comment Actions
Unfortunately this is not fixable due to backward compatibility issues. Restart functionality is part of Mission Save, Load, Restart routine and forcefully removing event handlers now could affect existing scenarios.