MIST removeEventHandler

From DCS World Wiki - Hoggitworld.com
Revision as of 23:10, 13 April 2018 by Grimes (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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