ColonelKernel 4 Posted August 27, 2017 Hi. How can I find the handler ID to use with ctrlRemoveEventHandler ? https://community.bistudio.com/wiki/ctrlRemoveEventHandler Share this post Link to post Share on other sites
Muzzleflash 111 Posted August 27, 2017 You get it from ctrlAddEventHandler. 1 Share this post Link to post Share on other sites
HazJ 1289 Posted August 27, 2017 13 hours ago, Muzzleflash said: You get it from ctrlAddEventHandler. Yes, as Muzzleflash said. Example: if ((!isNil "EH_mainMap")) then { ((findDisplay 12) displayCtrl 51) ctrlRemoveEventHandler ["Draw", EH_mainMap]; }; EH_mainMap = ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["Draw", Haz_fnc_playerMarkers]; 1 Share this post Link to post Share on other sites
ColonelKernel 4 Posted August 28, 2017 10 hours ago, HazJ said: Yes, as Muzzleflash said. Example: if ((!isNil "EH_mainMap")) then { ((findDisplay 12) displayCtrl 51) ctrlRemoveEventHandler ["Draw", EH_mainMap]; }; EH_mainMap = ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["Draw", Haz_fnc_playerMarkers]; Wait, that's the ID?! I thought the wiki meant an index (i.e a number) ! Share this post Link to post Share on other sites