# Wait For Condition
Grammar — Wait for (Conditions), checking every t timeType|Real/Game/AI Time seconds
Flags —SubFunctions
|Action
Pauses a trigger until the specified condition is met. Real time is normal time. Game time can pass faster or slower depending on the game speed. AI time passes at the same rate as game time, but can be paused or unpaused while real time and game time are still running. It is useful to pause the AI time while a player is watching a cinematic, so timed attack waves will wait until the player is finished with the cinematic before resuming their countdowns.
# Arguments
fixed
— Timeint
<preset::TimeType> — Time Type
Returns — void
while (!(#SUBFUNCS(cond," && "))) {
Wait(#PARAM(t), #PARAM(timeType));
}
# Related
Category: General / Waits
- Wait —
void
— Wait - Wait For Condition — macro
- Wait For Condition With Maximum Duration — macro
- Wait For Timer —
void
— libNtve_gf_WaitForTimer - Critical Section — macro
# Examples
— None found —