Game Development Community

Time of Day.

by Neill Silva · in Torque 3D Professional · 08/02/2009 (12:23 am) · 3 replies

Is the time of day when you have a time changing sun saved anywhere? Is it possible to save/load this data somehow?

What I am looking to do is have lights turn on/off at a certain Time of day/night.

#1
08/03/2009 (1:30 pm)
There used to be a getTimeOfDay function which if exposed to the scripts could be used to poll for time, but it seems to have been removed since I last looked.

There is also a function title "addTimeOfDayEvent" which may be exactly what your wanting for controlling lights at the right times, but I'm not certain.
#2
08/10/2009 (7:41 am)
@Bryan, you're correct, addTimeOfDayEvent is there specifically to enable the ability to set up events to happen at a certain time of day (such as lights turning on/off).
#3
08/10/2009 (12:43 pm)
Thank you Bryan and Ross.