This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Multiplies the speed of calendar time by the specified value. The parameter can be any positive number, though going over 10 is likely to cause bugs. 1 is normal speed. | |
args={...} | |
local rate=tonumber(args[1]) | |
local prev_tick = 0 | |
if rate == nil then | |
rate = 1 | |
elseif rate < 0 then | |
rate = 0 | |
end |