OnControlDown
From GECK
A function added by the Lutana NVSE plugin, now part of the JIP NVSE Plugin.
Description
Event block type that calls the UDF when the control is pressed, even if the control has been disabled with DisableControl. 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
Control Codes
0: Forward 1: Backward 2: Left 3: Right 4: Attack 5: Activate 6: Block/Aim 7: Ready Item/Reload 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
- OnControlUp
- SetOnControlDownEventHandler / SetOnControlUpEventHandler (uses JIP's event handling system)
- Event_Handling