Files
Basalt/docs/objects/Timer/setTime.md
2023-05-04 18:43:29 +02:00

392 B

setTime

sets the time the timer should wait before calling your function

Parameters:

  1. number the time to delay between repetitions
  2. number how many times it should be repeated -1 is infinite

Returns:

  1. object The object
local mainFrame = basalt.createFrame()
local aTimer = mainFrame:addTimer()
aTimer:setTime(2)
<timer time="2" repeat="1"/>