Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

How to get the in-game time/rotation of the sun?

$
0
0
Hi all,

I'm trying to write a script that will turn my station lights on during the night and off during the day. Is there a class or a method that I can access to know when the sun is up and the sun is down?

In fact, is there a class that I can find out the rotation of the sun in regards to the planet?

Sorry for the nubbie question, I'm just not 100% sure what to look for.


Thanks all!

Viewing all articles
Browse latest Browse all 903

Trending Articles