Skip to content

timer.frame⚓︎

Convenience access to frame timer functions. This is the same as passing type = timer.real to any of the functions from timer API.

Functions⚓︎

timer.frame.delayOneFrame⚓︎

Creates a timer that will finish the next frame.

Tip

It's recommended to study the Object Lifetimes guide. It describes how to safely use tes3reference objects inside timer callbacks.

local timer = timer.frame.delayOneFrame(callback)

Parameters:

  • callback (fun(e: mwseTimerCallbackData)): The callback function that will execute when the timer expires.

Returns: