12-23-2014, 07:51 PM
Or a Call the Function recursively.
Is that the best Option, realy?
Is that the best Option, realy?
Code:
function Initialize(Plugin)
Plugin:SetName("MyPlugin")
Plugin:SetVersion(1)
local World = cRoot:Get():GetDefaultWorld()
TaskFunction(World)
return true
end
function TaskFunction(World)
World:ScheduleTask(100, TaskFunction)
LOG(World:GetName())
end