Garry's Mod Wiki

Revision Difference

coroutine.wait#514151

<function name="wait" parent="coroutine" type="libraryfunc">⤶ <description>⤶ Yields the coroutine for the given duration before continuing.⤶ ⤶ This only works inside a coroutine.⤶ ⤶ This function uses <page>Global.CurTime</page> instead of <page>Global.RealTime</page>.⤶ </description>⤶ <realm>Shared</realm>⤶ <file line="15">lua/includes/extensions/coroutine.lua</file>⤶ <args>⤶ <arg name="duration" type="number">The number of seconds to wait</arg>⤶ </args>⤶ </function>⤶ ⤶