Class cWorld; Function ScheduleTask; Only one Function Callback
#1
Hallo,

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?
Reply
Thanks given by:


Messages In This Thread
Class cWorld; Function ScheduleTask; Only one Function Callback - by VeryBlackMan - 12-23-2014, 06:51 PM



Users browsing this thread: 1 Guest(s)