displaySetEventHandler – Talk

From Bohemia Interactive Community
Revision as of 16:42, 5 August 2008 by Killswitch (talk | contribs) (Noted loss of display event handler when resuming a saved SP game.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Does anybody know how to remove this displaySetEventHandler when needed ? removeEventHandler seems to be no help with this :-(

What about this: _control displaySetEventHandler ["KeyDown", ""]? If it works the same way the other EHs work, this should not work ;) Please sign your comments! --raedor 11:15, 11 February 2007 (CET)
hm. that works. And that means we can have the only EH per display. Not good if we want several scripts with keys hooking.--bdfy

Handler name can be: Char, KeyUp, KeyDown, ChildDestroyed, Unload, and ??? --Doolittle 07:42, 25 January 2008 (CET)

Nevermind.. :D User_Interface_Event_Handlers --Doolittle 07:43, 25 January 2008 (CET)

It seems the display event handler is lost when you resume a saved single player mission. At least, this is true for the "KeyDown" event handler commonly set to the mission display (display id 46). Killswitch 17:42, 5 August 2008 (CEST)