BIS fnc CPWaitUntil: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|Multiplayer Effects( \("local" or "gl...) |
||
Line 25: | Line 25: | ||
|x1= <code>[<nowiki/>{ [[not]] [[alive]] [[player]] }, 2] [[spawn]] [[BIS_fnc_CPWaitUntil]];</code> | |x1= <code>[<nowiki/>{ [[not]] [[alive]] [[player]] }, 2] [[spawn]] [[BIS_fnc_CPWaitUntil]];</code> | ||
|exec= spawn | |exec= spawn | ||
| [[waitUntil]] | | [[waitUntil]] | ||
}} | }} |
Revision as of 01:49, 18 January 2021
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