IsControlPressed

From GECK
Jump to: navigation, search


A function added by the Fallout Script Extender.

Description

Returns 1 if the key or mouse button assigned to a control is pressed. With JIP LN NVSE installed, also returns 1 if the controller button assigned to a control is pressed (the default controller button layout is assumed).

Syntax

[help]
(int) IsControlPressed controlCode:int 

Notes:

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