Jump to content

Weather


Recommended Posts

Guest Guest4401
local weathers = {7,8,9,16,11,19,15} 
local interval = 3600 -- in seconds 
  
setTimer( 
    function() 
        local randomWeather = weathers[math.random(#weathers)] -- pick a random weather 
        setWeather(randomWeather) -- set it 
    end 
    ,interval*1000,0 -- repeat it infinite times 
) 

Did you mean something like this?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...