01-17-2014, 02:36 AM
Countdown
|
01-17-2014, 02:37 AM
What advantage do these functions have over the new ScheduleTask function? It seems were duplicating effort.
01-17-2014, 02:39 AM
01-17-2014, 02:42 AM
01-17-2014, 02:49 AM
(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 the LobbySchedule is at 0 i start the StartSchedule.
01-17-2014, 02:50 AM
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)
01-17-2014, 02:54 AM
You can document it in the APIDump plugin at the cWorld section.
01-17-2014, 03:47 AM
(This post was last modified: 01-17-2014, 03:47 AM by daniel0916.)
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)
01-17-2014, 03:48 AM
Maybe it's not exported? Or the name is wrong.
01-17-2014, 03:59 AM
Maybe it's static? then you have to use: cWorld:ScheduleTask
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 34 Guest(s)