Scripts / Day and Night

Author
Message
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 21st Jun 2019 00:48
Ok I'm no way a good scripter I just get by atm, for my new project I wanted day and night sooo, I have a few but tend to use small's as its pretty basic and I can understand it. Righty the skybox doesn't go dark for any of the day and night scripts I have and so I was wondering why. Time to play about with the sliders... ok the contrast works with the slider is there a command to change it.. opens the global and there is .. SetContrast (e,v) hmm I wonder? so I added the value to the script and behold the sky went black. Now im not that cleavererer at scripting but I'm sure some of you guys could play with this and get it right.. see what you think here's smallg's day and night script with the contrast added. you do have to play with the fog settings 5 for all and close up goes pretty dark but puts the lights out ( but at least the skybox goes dark as well lol (thanks g maybe you could enhance this)
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on

Attachments

Login to view attachments
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 21st Jun 2019 18:14
you can change the skybox now too
Quote: "SetSkyTo(str)"
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 21st Jun 2019 20:07
ooo that's handy thank you
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on

Login to post a reply

Server time is: 2024-12-22 14:25:43
Your offset time is: 2024-12-22 14:25:43