Difference between revisions of "MIST removeEventHandler"

From DCS World Wiki - Hoggitworld.com
 
(No difference)

Latest revision as of 23:10, 13 April 2018


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