OnControlUp

From the Fallout3 GECK Wiki
Revision as of 19:29, 8 January 2017 by imported>Pintocat (Created page with "{{Function |origin = LU |summary = Event block type that calls the UDF when the control is released. The released control code (...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Lutana NVSE plugin.

Description

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

Use any control code after the ":" delimiter.

Syntax

[help]
SetEventHandler "OnControlUp:int" myUDF:userDefinedFunction


Example using "attack" control (4)

SetEventHandler "OnControlUp: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