12-23-2014, 06:51 PM
Hallo,
I want a ticker that calls a function every 5 minutes.
This is my Code.
But the Function TaskFunction is called only once.
Why this?
I want a ticker that calls a function every 5 minutes.
This is my Code.
Code:
function Initialize(Plugin)
Plugin:SetName("MyPlugin")
Plugin:SetVersion(1)
local World = cRoot:Get():GetDefaultWorld()
World:ScheduleTask(10, TaskFunction)
return true
end
function TaskFunction(World)
LOG(World:GetName())
end
But the Function TaskFunction is called only once.
Why this?