12-23-2014, 06:55 PM
(This post was last modified: 12-23-2014, 07:01 PM by Seadragon91.)
Code:
function Initialize(Plugin)
Plugin:SetName("MyPlugin")
Plugin:SetVersion(1)
local World = cRoot:Get():GetDefaultWorld()
Callback = function(World)
LOG(World:GetName())
World:ScheduleTask(6000, Callback)
end
World:ScheduleTask(10, Callback)
return true
end
This should work, had the same problem
Edit: Sorry misunderstood your question.
You can not directly, add a function as parameter.