I am attempting to use temptimers with a function..
I'd like to make the temptimer do something like this...
function remcolor()
if table.contains(colors, item) then
table.remove(colors, table.index_of(colors, item))
echo("I've removed the " .. item .. " color.")
end
end
--Below is based off of a trigger
local item = "Brown"
tempTimer(2, remcolor(item))
I just can't figure out how to use the function inside the temptimer.