Scripts / [SOLVED] Smooth change of skybox/Lighting settigns

Author
Message
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 15th May 2018 21:39
Hey guys,

I just wanted to asked you coders here if it is possible to have the skybox changed within the level?

Like when you start the level, its cloudy but it gets clear slowly after a while.

At the same time the script would also change the surface and fog levels.. I just wanted to ask if its possible or not.

Thanks in advance!

- Duchenkuke

The author of this post has marked a post as an answer.

Go to answer
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 15th Jun 2018 20:54 Edited at: 15th Jun 2018 20:55
This post has been marked by the post author as the answer.
I don't know about the possibility of a gradual change; but, there is now being tested in the beta version of 2018-06-15 a command SetSkyTo("name of sky folder"). e.g. "dark".

There is a new player in zone script to test it out. I have used it and works like a charm. However, you will need to do a little more scripting in order to be more realistic unless you want a drastic change on purpose. The name of the lua script is "plrinzonechangesky.lua". The code is very simple:

Alienware Aurora R7 with SSD 256GB boot drive ( C: ) and a secondary drive ( D: ) that is 2TB
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 with Intel Turbo-burst
Installed RAM 16.0 GB
64-bit operating system, x64-based processor
Windows 10 Home
NVIDIA GeForce GTX 1070 with 8192 MB GDDR5 and 8095 MB shared system memory
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 15th Jun 2018 22:00
Thats very cool tho! Thanks!

Login to post a reply

Server time is: 2024-12-22 19:25:56
Your offset time is: 2024-12-22 19:25:56