Torches (and all other flaming objects) have a light bulit into the model and a particle system linked.
They are created as with all other objects, but they have two extra parameters.
Set the FiresIntensity to [0.0] for the maximum flame. As you increase this value, the flame will get less until none is visible.
(about  in think)
Lights has a number of values.
First is the brightness. 0 is no light. 10 is about average. You can increase fora brighter light. (The max in the game is about 60).
Second value is the Precission. Not exactly sure how this works.
Last set of three is the colour (r,g,b). You can alter the colour of the light, but the flame will alway remain orange.
A nice feature in the game is the ability to light hand torches and to light wall torches with hand torches. Only three types can be used like this:
"Antorcha" (hand torch)
"Antorchaenpared" (wall torch)
"Palangana" (fire bowl)
To make a hand torch that can be lit, create it 'dead', that is
then add this:
First value is the brightness of the light when the totch is lit.
Second the fire intensity when torch is lit.
The last sets the time it will burn. -1 is everlasting. 180 will make it go out after 3minutes. You can only use them once.
The same method applies for wall torches, but the Player must have a lit torch in hand to use them.
btw. The "Antorcha" is officially a weapon. It's hit points are low in it's unlit state. BUT when you light them they aquire FIRE damage. If you create them ready lit you must still apply the SetUseable
code to enable the FIRE damage.
There is only one carryable torch, but lots of static ones. If you want to light other types you must use this little trick:
# This adds the obj "LamparaNegra" to the useable torches.
Do the last part for each individual torch object. The text at the end will show as the onscreen 'hint'
This code in this tut needs two extra imports. I won't say what as you should be able to spot them by now.
Certain flaming objects are just flames: They are "BoladeFuego" and the like. You can create lights in the LED which are compiled into the .bw file but you can also create lights seperately in script under the Kind:
They have various parameters like:
Set CastShadows param to 1 for shadows,0 for none. If you want to kill the cast shadows on a torch object use:
Lastly, You may have noticed in the game that hand torches tend to go out when you go outside. There is a sound reason for this. Waving a light source about in a big area can affect framerates dramatically and you don't really need a torch outside anyway. Assign a function
'Apagala' (name doesn't matter. It's Spanish for 'turn it off' )
to any sectors near the exit(s) from an interior place.
if a.Kind == "Antorcha":
print"My Torch has gone out!"