Huns Valen
Don't PM me here.
Join date: 3 May 2003
Posts: 2,749
|
05-24-2003 23:34
It would be nice if we had an API function that would let us get the angle of the sun over the horizon. That way we could have lights turn themselves on and off according to local sun time. It could return 0-360, with 0 being sunrise and 180 being sunset. Or as a percentage, or whatever.
|
Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
|
05-25-2003 00:08
llgetSunDirection() will return a vector indicating the direction of the sun. If the z component is more than 0 then it is day, if it is less than 0 then it is night.
|
Huns Valen
Don't PM me here.
Join date: 3 May 2003
Posts: 2,749
|
05-25-2003 00:19
Thanks for the info! I was just talking to another scripter who told me there was already a function similar to what I was looking for.
|