BIS fnc keyHold: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9])= *([^ ]+) * +\|version([0-9])= *([^ ]+) * " to "|game$1=$2 |version$3=$4 ") |
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])= ([^ ]+) (\[\[spawn\]\]) ([^ ]+) " to "|s$1= $2 spawn $4 ") |
||
Line 10: | Line 10: | ||
|descr= Allows for hold button interactions. Hold action is started by pressing the space bar. | |descr= Allows for hold button interactions. Hold action is started by pressing the space bar. | ||
|s1= [description, duration, condition, arguments, loaded] | |s1= [description, duration, condition, arguments, loaded] spawn [[BIS_fnc_keyHold]] | ||
|p1= description: [[String]] - Description of the performed action, displayed inside the progress bar. | |p1= description: [[String]] - Description of the performed action, displayed inside the progress bar. |
Revision as of 18:19, 20 June 2021
Description
- Description:
- Allows for hold button interactions. Hold action is started by pressing the space bar.
- Execution:
- spawn
- Groups:
- Interaction
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