This is a small tutorial on how to create directional lighting using shadows.
NOTE
You might need to edit you lighting quality for this
STYLE01 - Quick lightmapping (difficulty - medium)
You will need:
Lighting and shadows set to best for performance
A fully transparent texture.
A static object (for example: cylinderF)
How to do it:
First you need to place lights, then you can take the static object and set it's texture to the fully transparent one you made earlier
(to help position the barrel easily, set the transparency to 0, it will appear black in editor but transparent in game).
Now position the entity over the light marker (move the lightmarker up or down to change the width of the directional light)
Now run, it should resemble this
STYLE02 - Full Lightmapping (difficulty - hard)
What you will need:
Lighting and shadows set to Best for Quality
A static entity and a dynamic version of the same one (for example: Light2)
A texture for the static entity to cast the shadows
Another texture for the dynamic entity (alpha channel inverted from the static variant)
Part 1 - Creating the textures
This is the most time consuming part,
for it you will need:
the entity's _D2(diffuse) texture
and the entity's _I (illumination) texture, if one is available.
For the static entity, put the two textures on a layer each. Then add a layer mask to the _D2, copy (ctrl-c) and paste (ctrl-v) the _I into the layer mask and invert the colours.
Now delete the original _I layer and save the image as a .dds(you need a plug-in to do this), it will bring up a message saying 'DDS plug-in cannot handle layer masks, click export (this will apply the layer mask).
For the dynamic entity do the same, but no not invert the layer mask.
PART 2 - Entities
NOTE You need to remove the shader from the entity, if it uses one, by editing the fpe.
Put down two of the entity, one static, one dynamic(make sure it is immobile). Give each one it's texture, now put them on top of each other.
Now put a light marker inside them.
Now run it.
Mental Stability is over-rated!