(01-17-2014, 02:32 AM)STR_Warrior Wrote: [ -> ]But then.. What's the difference? 
I don't know. But the schedule is sometimes stopping. Give it a documentation about the new Schedule?
What advantage do these functions have over the new ScheduleTask function? It seems were duplicating effort.
(01-17-2014, 02:37 AM)worktycho Wrote: [ -> ]What advantage do these functions have over the new ScheduleTask function? It seems were duplicating effort.
Yes, but how can i use it?
(01-17-2014, 02:36 AM)daniel0916 Wrote: [ -> ]I don't know. But the schedule is sometimes stopping. Give it a documentation about the new Schedule?
When are you using AddLobbySchedule and when are you using AddStartSchedule?
(01-17-2014, 02:42 AM)STR_Warrior Wrote: [ -> ] (01-17-2014, 02:36 AM)daniel0916 Wrote: [ -> ]I don't know. But the schedule is sometimes stopping. Give it a documentation about the new Schedule?
When are you using AddLobbySchedule and when are you using AddStartSchedule?
When the LobbySchedule is at 0 i start the StartSchedule.
I need to document it but cant figure out where. It takes a function and a number of ticks and calls the function after that many ticks.
For example:
Code:
world.ScheduleTask(Callback, 10)
Would call Callback after 10 ticks in world world.
cRoot:Get():GetWorld("world"):ScheduleTask(LobbyCountDown, (COUNT_TO - I) * 20);
Don't work. What have i done false?
Error:
Code:
[18:44:31] LUA: Plugins/SurvivalGames/onplayerspawn.lua:34: attempt to call method 'ScheduleTask' (a nil value)
[18:44:31] Stack trace:
[18:44:31] [C](-1): ScheduleTask
[18:44:31] Plugins/SurvivalGames/onplayerspawn.lua(34): (no name)
[18:44:31] Stack trace end
[18:44:31] Error in plugin SurvivalGames calling function <callback>()
Maybe it's not exported? Or the name is wrong.
Maybe it's static? then you have to use: cWorld:ScheduleTask