Lua:AddScheduleRepeatingNotInfinitely
From Fortress Forever Wiki
Jump to navigationJump to search
AddScheduleNotInfinitelyWaits a period of time, then fires a lua function. Repeats x number of times, then self-destructs. UsageAddScheduleRepeatingNotInfinitely(schedule_id, duration, function, limit, ...) Input
OutputReturns nothing. ExampleAddScheduleRepeatingNotInfinitely must refer to a user-defined lua function. AddScheduleRepeatingNotInfinitely( "my_schedule", 3.3, DoSomething, 5, "hello") --This function can be defined anywhere in the file--wherever is convenient. function DoSomething (myString) --myString now equals "hello" --Do other stuff end |