HoldKey

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Fallout Script Extender.

Description

Fakes a key press (specified by int code) indefinitely, or until ReleaseKey is called.

Syntax

[help]
(none) HoldKey scanCode:int 

Or:

(none) hk scanCode:int

Example

HoldKey 31 ; 'S' key
; ...
; later, after a delay 
ReleaseKey 31

See Also