VN_fnc_holdkey

From Savage Game Design Wiki
Revision as of 21:02, 9 May 2022 by Slow (talk | contribs) (Created page with "{{Function |v= 1.00 |author=ZoZo, modified by Riccardo Argiolas, mmodified further by Ethan Johnson |a= |e= |g1= vn_end_functions |d= <pre>Function that exectues a user-de...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by ZoZo, modified by Riccardo Argiolas, mmodified further by Ethan Johnson
Argument(s): n/a
Effect(s): unknown

Description

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

Syntax

Syntax
[_display,_keyToPress,_timeToPress,_code,_textControl] call VN_fnc_holdkey;
Parameters
_display: Display - (Optional, default findDisplay 12) On what display it should be working (map display is default)
_keyToPress: Number - (Optional, default 57) What key to press
_timeToPress: Number - (Optional, default 3) How long the key has to be held down
_code: Code - (Optional, default {}) Code to be executed when key is held down for long enough
_textControl: Control - (Optional, default controlNull) Text control to be used in place of the default "Press X to skip" control.
Return value
Nothing