OnControlDown

< [[::Category:Functions|Category:Functions]]

A function added by the Lutana NVSE plugin.

Description

Event block type that calls the UDF when the control is pressed. The pressed control code (int) is passed to the UDF.

Use any control code after the ":" delimiter.

Syntax

SetEventHandler "OnControlDown:int" myUDF:userDefinedFunction


Example using "attack" control (4)

SetEventHandler "OnControlDown:4" MyUDF

scn MyUDF

int controlCode

begin function {controlCode}

end function

Control Codes

0:     Forward
1:     Backward
2:     Left
3:     Right
4:     Attack
5:     Activate
6:     Block/Aim
7:     Ready Item
8:     Crouch
9:     Run
10:    Always Run
11:    Auto-Move
12:    Jump
13:    TogglePOV
14:    MenuMode
15:    Rest
16:    VATS
17-24: Hotkeys 1-8
25:    Quicksave
26:    Quickload
27:    Grab



See Also