Hi scripters !
I'm working around this command in order to launch code by pressing a key.
Actualy it seems the UI is associated to display channels and precisely to the display "46" for the keyboard events. The BIS viki is very poor in explainations about this domain.
For now i can execute code by this way:
(findDisplay 46) displaySetEventHandler ["KeyDown","<my_code_2_call_here>"]
If someone could tell what he knows about those:
1) Is there a table of all displays, which tell of what they're pointing on?
2) How to stop the command?
I found nothing equivalent to "removeEventHandler" like a classic addEventHandler.
As soon as the displaySetEventHandler is sent to the engine, it seems to remain active.
3) Is there a way to run several times the command?
It seems the engine understand only the last command received.
I was using the addon CMJ_Sightajusment which is already using this command and as soon as I start to load my script, my script works but the SightAdjustment is dead.
Any comment's welcome