MIST removeEventHandler

From DCS World Wiki - Hoggitworld.com


mist.removeEventHandler

Added with: Mist 1.0
Description
Removes event handler with id id.
Syntax
boolean mist.removeEventHandler(number id )
Valid Input Values:
number id: any number
Return value:
boolean
Return example:
true
Usage Examples:
The following would remove a scheduled function from executing.

do

local myEvent= mist.addEventHandler(myEventHandler)
if whatever == true then
mist.remveEventHandler(myEvent)
end

end

Notes:
Related Functions
scheduleFunction, removeFunction, addEventHandler, removeEventHandler

Scripting Engine

MIST Root Page