Jump to content

Random Weather


Electro88

Recommended Posts

The timer is 2*60*60*1000 = 120 minutes.

setWeatherBlended changes the weather in a 2 hours period.

If you want a faster change use setWeather instead and change the time to something lower like 30*1000 (30 secs).

Try that:

function changeWeatherRandom ( ) 
     setWeather ( math.random ( 0, 255 ) 
end  
setTimer ( changeWeatherRandom, 20*1000, 0 ) 

Then you will see how it works.

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...