Game Development Community

Turning off lights within Difs

by Aaron Moore · in Torque Game Engine · 06/07/2007 (1:05 am) · 2 replies

Is there any way to disable a light that's within a dif if the zone isn't within view through any of the portals?

I think this would solve some bleeding problems and some framerate problems in large Difs that need many lights. Anybody accomplished this or can point me in the right direction?

#1
06/07/2007 (5:57 am)
I know interiors of these functions, "%interiorName.activateLight(%LightName)", and "%interiorName.deactivateLight(%LightName)", but I've never tried using them before.
#2
06/07/2007 (6:12 am)
Hmm...if the functions do what they appear to do, handmake the zones using triggers? It's possible, but could be messy.