Garry's Mod Wiki

coroutine.wait

  coroutine.wait( number duration )

Description

Repeatedly yields the coroutine for the given duration before continuing.

Only works inside a coroutine. Only useful in nextbot coroutine think function.

This function uses CurTime instead of RealTime.

Arguments

1 number duration
The number of seconds to wait