Game Development Community

Lights datablocks

by Howard Dortch · in Torque 3D Professional · 06/08/2011 (10:43 am) · 1 replies

In past versions of the engine I could declare a bunch of different lights by name with different attributes. In T3D however I dont get any choices and dont know how to add them. I select PointLight and a dialog will pop so I can enter a name. The pulldown for type is empty. How can I add light types so this pulldown can see them? I tried the datablock sgLightObjectData(CeilingFill) and datablock LightObjectData(CeilingFill) in a *.cs file but the console pops off with Unable to instantiate non-conobject class sgLightObjectData.
I have need to add 30 or so lights with different attributes and would like to think I dont have to edit each one manually.
Any help?

#1
06/08/2011 (3:49 pm)
You can easily duplicate a light by holding Shift while moving it. What you can also do is group your lights, using a Simgroup (under Library/Level/System). Then, by right-clicking the Simgroup, and choosing "add children to selection" (and deselecting the folder himself) you can edit the properties for all the lights at the same time, so it's great if you want to have several different light objects sharing common attributes.