- Joined
- Jul 30, 2018
- Messages
- 445
Hey!
I have another Lua related question. Why does this work:
But not this:
The latter one will run once, but not periodically.
I have another Lua related question. Why does this work:
Lua:
function TestTimer()
TimerStart(CreateTimer(), 1, true, function()
print("Timer Message")
end)
end
Lua:
function TimerMessage()
print("Timer Message")
end
function TestTimer()
TimerStart(CreateTimer(), 1, true, TimerMessage())
end
The latter one will run once, but not periodically.