event.count

Type String
Event timer
Revision Release 2022.3683
Keywords timer, count
See also timer

Overview

The number of times that the timer has fired the listener. This is useful if you registered the timer to fire multiple times.

Example

local function listener( event )
    print( event.count )
end

timer.performWithDelay( 1000, listener )