BIS_fnc_holdKey

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.78
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.78

Description

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

Syntax

Syntax:
[display, key, time, code, control] call BIS_fnc_holdKey
Parameters:
Display - display - Display the event is attached to (map display is default).
Number - key - What key to press.
Number - time - how long the key has to be held down in seconds.
Code - code - Code to be executed when key is held down for long enough.
Control - control - Optional - text control to be used in place of the default "Press X to skip" control.
Return Value:
None

Examples

Example 1:
[findDisplay 46,36,5, {hint "Key 'J' pressed for 5 seconds"}] call BIS_fnc_holdKey; // Action is added to the mission display

Additional Information

Execution:
call
Multiplayer:
-
See also:
BIS_fnc_holdActionAddaddAction

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes