Electro88 Posted February 2, 2016 Share Posted February 2, 2016 hello everyone again me i need random weather how create ? Link to comment
Bonus Posted February 2, 2016 Share Posted February 2, 2016 (edited) function changeRandomWeather ( ) setWeatherBlended ( math.random ( 0, 255 ) ) end setTimer ( changeRandomWeather, 2*60*60*1000, 0 ) Edited February 2, 2016 by Guest Link to comment
Bonus Posted February 2, 2016 Share Posted February 2, 2016 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
Electro88 Posted February 2, 2016 Author Share Posted February 2, 2016 setTimer ( changeWeatherRandom, 20*1000, 0 ) lol again no work 20*1000 20 sec ? Link to comment
Bonus Posted February 2, 2016 Share Posted February 2, 2016 You should really work with debugscript. There is a ")" missing for setWeather. function changeWeatherRandom ( ) setWeather ( math.random ( 0, 255 ) ) end setTimer ( changeWeatherRandom, 20*1000, 0 ) Link to comment
Electro88 Posted February 2, 2016 Author Share Posted February 2, 2016 Now Worked but red sky and white screen what ? Link to comment
Bonus Posted February 2, 2016 Share Posted February 2, 2016 setWeather is changing it too fast + every 20 sec. Its only a test-code, better use 2 hours and setWeatherBlend. Link to comment
Electro88 Posted February 2, 2016 Author Share Posted February 2, 2016 Well. question my help panel turkish words it does not support how can i fix ? Link to comment
Electro88 Posted February 2, 2016 Author Share Posted February 2, 2016 Why no have fix ? Link to comment
Bonus Posted February 2, 2016 Share Posted February 2, 2016 What do you even want? I didn't understand exactly what you want. If you mean the turkish words like s for sh, c for ch and i without the point then try to use the normal words. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now