BIS fnc keyHold: Difference between revisions
Jump to navigation
Jump to search
m (infobox to template) |
m (page filled) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | |game1= arma3 | ||
|1.00 | |version1= 1.00 | ||
<! | <!--|exec= server|=--> | ||
<! | <!--|arg= local--> | ||
| | |eff= local | ||
|descr= Allows for hold button interactions. Hold action is started by pressing the space bar. | |||
|s1= [description, duration, condition, arguments, loaded] [[spawn]] [[BIS_fnc_keyHold]] | |||
|p1= description: [[String]] - Description of the performed action, displayed inside the progress bar. | |||
| | |p2= duration: [[Number]] - (Optional, default 2) Duration of the action | ||
| | |p3= condition: [[Code]] or [[String]] - (Optional, default {[[true]]}) Condition that must be met for the action to display | ||
| | |p4= arguments: [[Array]] - (Optional, default []) Arguments passed to the condition | ||
|x1= <code></code>| | |p5= loaded: [[Boolean]] - (Optional, default [[false]]) Defines if function is already loaded. This is handled by the function | ||
|r1= [[Nothing]] | |||
|x1= <code>["Hold that key!",2,{[[alive]] [[player]]}] [[spawn]] [[BIS_fnc_keyHold]];</code> | |||
|exec= spawn | |||
|seealso= [[BIS_fnc_holdActionAdd]] | |||
}} | }} | ||
Revision as of 11:34, 12 January 2020
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