SetOnControlUpEventHandler

From GECK
Jump to: navigation, search


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 Control ID is released.

When invoked, the script is passed with a single argument: the released Control ID.

Syntax

[help]
SetOnControlUpEventHandler handlerScript:ref setORremove:1/0 controlID:int

Example

SetOnControlUpEventHandler OnControlUpUDF 1 4

Sets the OnControlUpUDF script as a handler to be invoked whenever the Attack control is released.

SetOnControlUpEventHandler OnControlUpUDF 0 4

Removes the OnControlUpUDF script as a handler for the above.

Handler Script

A skeleton handler script for this event:

scn	OnControlUpUDF

int	iControlID

begin Function {iControlID}

(code)

end

See Also