BIS fnc CPWaitUntil: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 10: | Line 10: | ||
|descr= Function waits until condition becomes true. Condition is checked with given interval. | |descr= Function waits until condition becomes true. Condition is checked with given interval. | ||
|s1=[condition, interval] spawn [[BIS_fnc_CPWaitUntil]] | |s1= [condition, interval] spawn [[BIS_fnc_CPWaitUntil]] | ||
|p1= condition: [[Code]] - (Optional, default {{ic|{ [[true]] }<nowiki/>}}) Condition to be checked | |p1= condition: [[Code]] - (Optional, default {{ic|{ [[true]] }<nowiki/>}}) Condition to be checked | ||
Line 18: | Line 18: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>[{ not alive player }, 2] spawn BIS_fnc_CPWaitUntil;</sqf> | ||
|exec= spawn | |exec= spawn |
Revision as of 20:36, 7 May 2022
Description
- Description:
- Function waits until condition becomes true. Condition is checked with given interval.
- Execution:
- spawn
- Groups:
- CombatPatrolProgram Flow
Syntax
- Syntax:
- [condition, interval] spawn BIS_fnc_CPWaitUntil
- Parameters:
- condition: Code - (Optional, default
{ true }
) Condition to be checked - interval: Number - (Optional, default 0.5) Interval in which the condition will be checked
- Return Value:
- Nothing
Examples
- Example 1:
Additional Information
- See also:
- waitUntil
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