diff --git a/jass/RegisterNativeEvent.j b/jass/RegisterNativeEvent.j index ad41fa2..d6385b7 100644 --- a/jass/RegisterNativeEvent.j +++ b/jass/RegisterNativeEvent.j @@ -1,6 +1,6 @@ /***************************************************************************** * -* RegisterNativeEvent v1.1.1.3 +* RegisterNativeEvent v1.1.1.4 * by Bannar * * Storage of trigger handles for native events. @@ -47,6 +47,9 @@ * function RegisterNativeEvent takes integer whichEvent, code func returns nothing * Registers new event handler func for specified event whichEvent. * +* function UnregisterNativeEventHandler takes integer whichEvent, triggercondition handler returns nothing +* Unregisters specified event handler for event whichEvent. Requires Warcraft 1.30.4+. +* *****************************************************************************/ library RegisterNativeEvent uses optional Table @@ -119,4 +122,8 @@ function RegisterNativeEvent takes integer whichEvent, code func returns nothing call RegisterIndexNativeEvent(bj_MAX_PLAYER_SLOTS, whichEvent, func) endfunction +function UnregisterNativeEventHandler takes integer whichEvent, triggercondition handler returns nothing + call TriggerRemoveCondition(GetNativeEventTrigger(whichEvent), handler) +endfunction + endlibrary \ No newline at end of file