Difference between revisions of "Lua:AddSchedule"
From Fortress Forever Wiki
Jump to navigationJump to search| Line 28: | Line 28: | ||
end</pre> | end</pre> | ||
| − | [[Category: | + | [[Category:Schedules]] |
{{Infobox manual/Footer}} | {{Infobox manual/Footer}} | ||
Revision as of 11:24, 11 May 2009
|
AddScheduleA schedule allows you to fire a lua function, after waiting x number of seconds. UsageAddSchedule(schedule_id, duration, function, ...) Input
OutputReturns nothing. ExampleAddSchedule must refer to a user-defined lua function. AddSchedule( "my_schedule", 3.3, DoSomething, "hello") --This function can be defined anywhere in the file--wherever is convenient. function DoSomething (myString) --myString now equals "hello" --Do other stuff end |