Skip to content
VN_fnc_holdkey

VN_fnc_holdkey

Function that exectues a user-defined code when a key has been held down for a long enough time.

Syntax

[_display,_keyToPress,_timeToPress,_code,_textControl] call VN_fnc_holdkey;

Parameters

ParameterTypeDefaultDescription
_display DisplayfindDisplay 12 On what display it should be working (map display is default)
_keyToPress Number57 What key to press
_timeToPress Number3 How long the key has to be held down
_code Code{} Code to be executed when key is held down for long enough
_textControl ControlcontrolNull Text control to be used in place of the default “Press X to skip” control.

Documented by ZoZo, modified by Riccardo Argiolas, mmodified further by Ethan Johnson.