Game Development Community

lights and dnStartTime /dnEndTime

by Rob Williams (bobzub) · in Torque 3D Professional · 03/03/2010 (4:54 pm) · 1 replies



Hi,

I was adding some spotlights to level I have. Basically I wanted the lights to come on once the world gets dark, and turn off once the sun comes back up. With the light selected, in the instpector, there is the Day / Night area with dnStartTime and dnEndTime (at work atm, I think it was EndTime). Either way, I have played a bit with the settings but do not see anything happening with the lights. I have also tried several searches here and have found no information regarding the dnStartTime and dnEndTime. I am not fully certain what values these fields are looking for, or even if these field do what I am looking for.

Any clue appreciated, even the bat....

thanks :)

#1
03/03/2010 (8:56 pm)
Add all your lights to a SimGroup called street lights, then on a timer check the elevation or the time in TimeOfDay, based on that time you scan through the SimGroup and set the lights Enabled state.