Files
Basalt/docs/objects/Timer/setTime.md
Robert Jelic 4d614372a1 Updated docs
There is still stuff to do
2022-08-28 18:18:26 +02:00

365 B

setTime

sets the time the timer should wait after calling your function

Parameters:

  1. number the time to delay
  2. number how often 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"/>