SetOnMenuCloseEventHandler

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Sets/removes the specified UDF Script as a handler that will be invoked in the event the specified Menu Mode is closed.

When invoked, the script is passed with a single argument: the Menu Mode ID.

Syntax

[help]
SetOnMenuCloseEventHandler handlerScript:ref setORremove:1/0 menuID:int

Example

SetOnMenuCloseEventHandler OnMenuCloseUDF 1 1002

Sets the OnMenuCloseUDF script as a handler to be invoked when the Inventory Menu is closed.

SetOnMenuCloseEventHandler OnMenuCloseUDF 0 1002

Removes the OnMenuCloseUDF script as a handler of the above.

Handler Script

A skeleton handler script for this event:

scn	OnMenuCloseUDF

int	iMenuID

begin Function {iMenuID}

(code)

end

See Also