GetLowerPriorityEventHandlers

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender version 6.2.9.

Description

Returns a Map Array with all the event handlers that have a lower or equal priority than the specified handler at startPriority. This is for debugging priority conflicts between handlers.

Each key in the map is a priority, and each value is an array representing a handler.

A handler array is a regular array containing:

  • Index [0]: Either a script handler, or an array representation of a plugin handler.
    • The latter is a StringMap containing the plugin name at ["Plugin"] and the handler name at ["Handler"]. These strings may be empty.
  • Index [1]: A StringMap of all the filters used by the handler.

If the handler could not be found at startPriority, returns Ar_Null.

Only includes event handlers registered using SetEventHandler / SetEventHandlerAlt, or are generally managed by NVSE.

  • Does NOT include the LN event handlers, such as OnCellEnter, as those handlers aren't managed by NVSE.
  • Events such as SetOnHitEventHandler are not managed by NVSE.

Syntax

[help]
(array) GetLowerPriorityEventHandlers eventName:string handler:UDF startPriority:int scriptsToIgnore:scriptOrFormlist{0} pluginsToIgnore:array{Ar_Null} pluginHandlersToIgnore:array{Ar_Null} 

See Also