GetTimerRemainingTime

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
GetTimerRemainingTime

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Gets the specified timer's remaining time.

Syntax

GetTimerRemainingTime(timer)

Parameters

  • timer
    The timer identifier

Return Value

  • The float value of timer interval left.

Example

local timerId = CreateTimer(function ()
    print("Timer called.")
end, 5 * 1000)

Delay(1000, function ()
    print(GetTimerRemainingTime(timerId))
end)

See also