Scripts / Timer not working

Author
Message
MaximEpihin
User Deleted
Posted: 8th Jan 2016 20:48
I need to make the passage of time changed the lighting. But the timer does not work. Tell me how it works and how you can fix the problem
Create a game - it's like to start a new universe where there is only you and solitude with the environment
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 9th Jan 2016 00:05
Hi MaximEpihin,

You are missing the [e] on "state" variables in the main function. it should be state[e]
Also try increasing that delay value to 1000 or so. 100 is 100millisecond = 1/10 second.

Cheers


Desktop: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 CPUs), ~3.6GHz, Windows 8.1 64-bit, 16 GB Ram, NVIDIA GeForce GTX 750 Ti, Display Memory: 4018 MB. Resolution 1360x768, Passmark 3528.
Laptop: Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)

Login to post a reply

Server time is: 2024-12-22 12:16:12
Your offset time is: 2024-12-22 12:16:12