{"name":"displayRemoveEventHandler","operator":null,"title":"displayRemoveEventHandler","type":"command","url":"https://community.bistudio.com/wiki/displayRemoveEventHandler","revid":364901,"updated":"2024-06-29T14:38:36Z","groups":["GUI Control - Event Handlers","Event Handlers"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Remove a given event handler from the given display.","syntaxes":[{"syntax":"display displayRemoveEventHandler [handlerType, id]","since":null,"effect":null,"exec":null,"params":[{"name":"display","type":"Display","optional":false,"default":null,"description":null,"types":["Display"],"since":null,"text":"display: Display"},{"name":"handlerType","type":"String","optional":false,"default":null,"description":"type of the event handler","types":["String"],"since":null,"text":"handlerType: String - type of the event handler"},{"name":"id","type":"Number","optional":false,"default":null,"description":"index of the event handler","types":["Number"],"since":null,"text":"id: Number - index of the event handler"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"display","types":["Display"]},"right":{"text":"[handlerType, id]","types":["Array"]}}],"examples":[{"text":"```sqf\nfindDisplay 46 displayRemoveEventHandler [\"keyDown\",5];\n```","code":["findDisplay 46 displayRemoveEventHandler [\"keyDown\",5];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["disableSerialization","Display","displayAddEventHandler","displayRemoveAllEventHandlers"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Event Handlers","Command Group: GUI Control - Event Handlers","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}