Description
Function waits until condition becomes true. Condition is checked with given interval.
Syntax
[condition, interval] spawn BIS_fnc_CPWaitUntil
Parameters:
condition: Code - (Optional, default{ true }) condition to be checkedinterval: Number - (Optional, default 0.5) interval in which the condition will be checked
Returns: Nothing
Examples
Example 1
[{ not alive player }, 2] spawn BIS_fnc_CPWaitUntil;