BIS fnc keyHold: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (page filled)
m (Text replacement - "\[\[Category\:Function Group\: GUI(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
Line 35: Line 35:
}}
}}


[[Category:Function Group: GUI|{{uc:keyHold}}]]
 
[[Category:Functions|{{uc:keyHold}}]]
[[Category:Functions|{{uc:keyHold}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:keyHold}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:keyHold}}]]

Revision as of 16:54, 10 October 2020

Hover & click on the images for description

Description

Description:
Allows for hold button interactions. Hold action is started by pressing the space bar.
Execution:
spawn
Groups:
Uncategorised

Syntax

Syntax:
[description, duration, condition, arguments, loaded] spawn BIS_fnc_keyHold
Parameters:
description: String - Description of the performed action, displayed inside the progress bar.
duration: Number - (Optional, default 2) Duration of the action
condition: Code or String - (Optional, default {true}) Condition that must be met for the action to display
arguments: Array - (Optional, default []) Arguments passed to the condition
loaded: Boolean - (Optional, default false) Defines if function is already loaded. This is handled by the function
Return Value:
Nothing

Examples

Example 1:
["Hold that key!",2,{alive player}] spawn BIS_fnc_keyHold;

Additional Information

See also:
BIS_fnc_holdActionAdd

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note