{"name":"BIS_fnc_diagLoop","operator":null,"title":"BIS fnc diagLoop","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_diagLoop","revid":348046,"updated":"2023-11-08T11:28:47Z","groups":["Diagnostic"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":"spawn","description":"Runs scripted loop. Repeated call terminates previous loops.","syntaxes":[{"syntax":"[code, delay] spawn BIS_fnc_diagLoop","since":null,"effect":null,"exec":null,"params":[{"name":"code","type":"Code","optional":false,"default":null,"description":"code to be executed","types":["Code"],"since":null,"text":"code: Code - code to be executed"},{"name":"code","type":"Number","optional":true,"default":"0.1","description":"delay between loops","types":["Number"],"since":null,"text":"code: Number - (Optional, default 0.1) delay between loops"}],"returns":{"type":"Script Handle","types":["Script Handle"],"description":"spawn handle","text":"Script Handle - spawn handle"}}],"examples":[{"text":"```sqf\n[{ systemChat \"Loop!\" }, 0.5] spawn BIS_fnc_diagLoop;\n```","code":["[{ systemChat \"Loop!\" }, 0.5] spawn BIS_fnc_diagLoop;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Diagnostic","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}