Jump to content
Barba-negra

disable and enable console option

Recommended Posts

Hi guys, how are you all? I would like to ask a question, if this scritp allows me to disable a console function:

 

if (!hasInterface) exitWith {}; 
waitUntil {!isNull findDisplay 46}; 
findDisplay 46 displayAddEventHandler ["KeyDown",{ 
 if (inputAction "ingamePause" > 0) then { 
  [] spawn { 
   waitUntil {!isNull findDisplay 49}; 
   (findDisplay 49 displayCtrl 13286) ctrlEnable false; 
  }; 
 }; 
}];

 

 but my question is how can I activate that function again?

 

if (!hasInterface) exitWith {}; 
waitUntil {!isNull findDisplay 46}; 
findDisplay 46 displayAddEventHandler ["KeyDown",{ 
 if (inputAction "ingamePause" > 0) then { 
  [] spawn { 
   waitUntil {!isNull findDisplay 49}; 
   (findDisplay 49 displayCtrl 13286) ctrlEnable true; 
  }; 
 }; 
}];

 

if i put true don't activate it again? What am I doing wrong?

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

×