BIS fnc diagLoop: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )D([a-z])" to "$1d$3")
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Diagnostic


|1.00|= Game version
|descr= Runs scripted loop. Repeated call terminates previous loops.
____________________________________________________________________________________________


| <pre>/*
|s1= [code, delay] spawn [[BIS_fnc_diagLoop]]


Description:
|p1= code: [[Code]] - code to be executed
Runs scripted loop. Repeated call terminates previous loops.


Parameter(s):
|p2= code: [[Number]] - (Optional, default 0.1) delay between loops
0: CODE - code to be executed
1: NUMBER - delay between calls (default: 0.1)


Returns:
|exec= spawn
SCRIPT - spawn handle
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|r1= [[Script Handle]] - [[spawn]] handle
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_diagLoop]]; --> |= Syntax
|x1= <sqf>[{ systemChat "Loop!" }, 0.5] spawn BIS_fnc_diagLoop;</sqf>
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[:Category:Function Group: Diagnostic|Diag functions]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Diagnostic|{{uc:diagLoop}}]]
[[Category:Functions|{{uc:diagLoop}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:diagLoop}}]]

Latest revision as of 12:28, 8 November 2023

Hover & click on the images for description

Description

Description:
Runs scripted loop. Repeated call terminates previous loops.
Execution:
spawn
Groups:
Diagnostic

Syntax

Syntax:
[code, delay] spawn BIS_fnc_diagLoop
Parameters:
code: Code - code to be executed
code: Number - (Optional, default 0.1) delay between loops
Return Value:
Script Handle - spawn handle

Examples

Example 1:
[{ systemChat "Loop!" }, 0.5] spawn BIS_fnc_diagLoop;

Additional Information

See also:
Diag functions

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