Jump to content

Recommended Posts

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];

 

  • Like 1

Share this post


Link to post
Share on other sites
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×