wait

Client Server

Used to wait/yield the current event handler. (In milliseconds)

event.wait(ms --[[ integer ]])

This can be used only to wait an event running on a "per frame logic". Currently only core:on_gameplay_render and core:on_gameplay_simulate can be waited using this function.

Last updated