Lua:AddScheduleRepeating
From Fortress Forever Wiki
Jump to navigationJump to search|
AddScheduleRepeatingWaits a period of time, then fires a lua function. Repeats indefinitely. UsageAddScheduleRepeating(schedule_id, duration, function, ...) Input
OutputReturns nothing. ExampleAddScheduleRepeating must refer to a user-defined lua function. AddScheduleRepeating( "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 |