BIS fnc diagLoop: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Execution" to "|Execution=")
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )D([a-z])" to "$1d$3")
 
(22 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
____________________________________________________________________________________________


| Runs scripted loop. Repeated call terminates previous loops.|DESCRIPTION=
|descr= Runs scripted loop. Repeated call terminates previous loops.


____________________________________________________________________________________________
|s1= [code, delay] spawn [[BIS_fnc_diagLoop]]


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


|exec= spawn |Execution=
|p2= code: [[Number]] - (Optional, default 0.1) delay between loops


| [[Script]] - [[spawn|Spawn]] handle|RETURNVALUE=
|exec= spawn
____________________________________________________________________________________________


|x1= <code>[{systemChat "Loop!"}, 0.5] [[spawn]] [[BIS_fnc_diagLoop]];</code> |=
|r1= [[Script Handle]] - [[spawn]] handle
____________________________________________________________________________________________


|[[:Category:Function Group: Diagnostic|Diag functions]]|SEEALSO=
|x1= <sqf>[{ systemChat "Loop!" }, 0.5] spawn BIS_fnc_diagLoop;</sqf>
 
|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 13: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