- Dokumentacja
- Funkcje wspólne
- killTimer
Funkcja
killTimer
Zatrzymuje timer na stałe. Funkcja już się nie wywoła.
Składnia
bool killTimer(timer timer)Argumenty
timertimer- Timer.
Zwraca
true przy powodzeniu, false, gdy timera już nie ma.
Przykład
local countdown = 10
local t
t = setTimer(function()
countdown = countdown - 1
outputChatBox("Start za " .. countdown)
if countdown <= 0 then killTimer(t) end
end, 1000, 0)