{"name":"BIS_fnc_CPWaitUntil","title":"BIS fnc CPWaitUntil","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_CPWaitUntil","revid":348068,"updated":"2023-11-08T11:29:53Z","groups":["CombatPatrol","Program Flow"],"status":"ok","games":{"arma3":"1.72"},"since":"arma3 1.72","arma3_since":"1.72","exec":"spawn","description":"Function waits until condition becomes true. Condition is checked with given interval.","syntaxes":[{"syntax":"[condition, interval] spawn BIS_fnc_CPWaitUntil","params":[{"name":"condition","type":"Code","optional":true,"default":"`{ true }`","description":"condition to be checked","type_expr":"Code","text":"condition: Code - (Optional, default `{ true }`) condition to be checked"},{"name":"interval","type":"Number","optional":true,"default":"0.5","description":"interval in which the condition will be checked","type_expr":"Number","text":"interval: Number - (Optional, default 0.5) interval in which the condition will be checked"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["[{ not alive player }, 2] spawn BIS_fnc_CPWaitUntil;"]}],"see_also":["waitUntil"]}