BIS fnc CPWaitUntil: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )I([a-z])" to "$1i$3") |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.72 | |||
|1.72 | |||
|gr1= CombatPatrol | |gr1= CombatPatrol | ||
Line 9: | Line 8: | ||
|gr2= Program Flow | |gr2= Program Flow | ||
| 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. | ||
|[condition, interval] spawn [[BIS_fnc_CPWaitUntil]] | |s1= [condition, interval] spawn [[BIS_fnc_CPWaitUntil]] | ||
|p1= condition: [[Code]] - (Optional, default { | |p1= condition: [[Code]] - (Optional, default <sqf inline>{ true }</sqf>) condition to be checked | ||
|p2= interval: [[Number]] - (Optional, default 0.5) | |p2= interval: [[Number]] - (Optional, default 0.5) interval in which the condition will be checked | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>[{ not alive player }, 2] spawn BIS_fnc_CPWaitUntil;</sqf> | ||
|exec= spawn | |exec= spawn |
Latest revision as of 12:29, 8 November 2023
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