Class cWorld; Function ScheduleTask; Only one Function Callback
#6
You can use the example by Seadragon91
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

You can reschedule it in the function itself.
Reply
Thanks given by:


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



Users browsing this thread: 5 Guest(s)