Skip to content

Instantly share code, notes, and snippets.

@keldin-coding
Created October 8, 2021 04:41
Show Gist options
  • Save keldin-coding/6e126cf51d7791ef065c2ae45b0f531a to your computer and use it in GitHub Desktop.
Save keldin-coding/6e126cf51d7791ef065c2ae45b0f531a to your computer and use it in GitHub Desktop.
mercerTable = mercerTable or {}
function mercerTable.whatTheTimerDoes()
local sound1 = HoweverSoundsWork()
play(sound1)
end
function mercerTable.makeATimer()
if type(mercerTable.thisCoolTimer) == "number" then
killTimer(mercerTable.thisCoolTimer)
end
mercerTable.thisCoolTimer = tempTimer(0.1, whatTheTimerDoes)
end
function cleanupTheTimer
---- some alias
"do whatever cool stuff"
mercerTable.makeATimer()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment