ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. setTimerDelay

Function

setTimerDelay

Server and clientTimersTrilogy Hub only

Sets the time until the timer's next call without changing its interval.

Syntax

bool setTimerDelay(timer timer, int delay)

Arguments

timertimer
The timer.
delayint
Time in ms.

Returns

true on success.

Example

local t = setTimer(function() outputChatBox("Tick") end, 60000, 0)
setTimerDelay(t, 1000)  -- pierwszy raz po sekundzie / first call after a second