BIS fnc CPWaitUntil: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Fix example) |
||
Line 15: | Line 15: | ||
| Function waits until condition becomes true. Condition is checked with given interval. |Description= | | Function waits until condition becomes true. Condition is checked with given interval. |Description= | ||
|[condition, interval] spawn [[BIS_fnc_CPWaitUntil]]|Syntax= | |[condition, interval] spawn [[BIS_fnc_CPWaitUntil]] |Syntax= | ||
|p1= condition: [[Code]] - (Optional, default {[[true]]}) Condition to be checked |Parameter 1= | |p1= condition: [[Code]] - (Optional, default {{Inline code|{ [[true]] }<nowiki/>}}) Condition to be checked |Parameter 1= | ||
|p2= interval: [[Number]] - (Optional, default 0.5) Interval in which the condition will be checked |Parameter 2= | |p2= interval: [[Number]] - (Optional, default 0.5) Interval in which the condition will be checked |Parameter 2= | ||
Line 23: | Line 23: | ||
| [[Nothing]] |Return value= | | [[Nothing]] |Return value= | ||
|x1= <code><nowiki | |x1= <code>[<nowiki/>{ [[not]] [[alive]] [[player]] }, 2] [[spawn]] [[BIS_fnc_CPWaitUntil]];</code>|Example 1= | ||
|exec= spawn|Execution= | |exec= spawn |Execution= | ||
| [[waitUntil]] |See also= | | [[waitUntil]] |See also= | ||
}} | }} | ||
Revision as of 21:10, 20 October 2020
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:
[{ not alive player }, 2] spawn BIS_fnc_CPWaitUntil;
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