Game Development Community

Lights on and off

by Howard Dortch · in Torque 3D Professional · 01/08/2010 (12:22 pm) · 2 replies

Been searching for the trick to turn lights on and off. Saw one fix that has been implemented in the engine but still can't turn a light off. I have a switch and a light but no go.
myLight.setEnabled(false); and the light stays on but I can uncheck the enable in the editor and turn it off. Am I missing something?

#1
01/08/2010 (1:29 pm)
dump() is your friend!
setLightEnabled() - ( bool enabled )^Toggles the light on and off.
#2
01/08/2010 (1:55 pm)
My bad, had them disabled to check something else I was working on, thanks for the wakeup.