BIS fnc diagLoop: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Diagnostic(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )D([a-z])" to "$1d$3")
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Diagnostic


|gr1= Diagnostic |GROUP1=
|descr= Runs scripted loop. Repeated call terminates previous loops.
____________________________________________________________________________________________


| Runs scripted loop. Repeated call terminates previous loops.|DESCRIPTION=
|s1= [code, delay] spawn [[BIS_fnc_diagLoop]]


____________________________________________________________________________________________
|p1= code: [[Code]] - code to be executed


|  [code,delay] spawn [[BIS_fnc_diagLoop]] |SYNTAX=
|p2= code: [[Number]] - (Optional, default 0.1) delay between loops
____________________________________________________________________________________________
|p1= code: [[Code]] - Code to be executed|PARAMETER1=
|p2= code: [[Number]] - (Optional, default 0.1) Delay between loops|PARAMETER2=


|exec= spawn |Execution=
|exec= spawn


| [[Script]] - [[spawn|Spawn]] handle|RETURNVALUE=
|r1= [[Script Handle]] - [[spawn]] handle
____________________________________________________________________________________________


|x1= <code>[{systemChat "Loop!"}, 0.5] [[spawn]] [[BIS_fnc_diagLoop]];</code> |=
|x1= <sqf>[{ systemChat "Loop!" }, 0.5] spawn BIS_fnc_diagLoop;</sqf>
____________________________________________________________________________________________


|[[:Category:Function Group: Diagnostic|Diag functions]]|SEEALSO=
|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: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