SetOnTriggerDownEventHandler

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 controller Trigger is pressed.

When invoked, the script is passed with a single argument: the pressed Trigger (0: Left; 1: Right).

Syntax

[help]
SetOnTriggerDownEventHandler handlerScript:ref setORremove:1/0 leftOrRight:0/1

Example

SetOnTriggerDownEventHandler OnTriggerDownUDF 1 0

Sets the OnTriggerDownUDF script as a handler to be invoked whenever L-Trigger is pressed.

SetOnTriggerDownEventHandler OnTriggerDownUDF 0 0

Removes the OnTriggerDownUDF script as a handler of the above.

Handler Script

A skeleton handler script for this event:

scn	OnTriggerDownUDF

int	bIsRTrigger

begin Function {bIsRTrigger}

(code)

end

See Also