Well, there is a simple example where you attach the action to an entity and then play with the values as you need and even rotate or tilt as you want. Hope it helps.

Code:


action test_light
{
/*d3d_spotlightcone[0] = 90;// inner light cone in degrees (1..90, default 30)
d3d_spotlightcone[1] = 1;//darker area around light cone (1..90, default 15)
d3d_spotlightcone[2] = 0; //light falloff effect within the darker area (-5..5, default 1)
d3d_pointlightfalloff[0] = 90; // tweak the pointlightfalloff with these values.
d3d_pointlightfalloff[1] = 1;
d3d_pointlightfalloff[2]= 0;*/
my.tilt = -60;
my.red = 255;
my.green = 255;
my.blue = 0;
my.transparent=on;
my.alpha=0;
//my.cast = on;
my.lightrange = 2000;
my.spotlight = on;
while(1)
{
my.pan += 5 * time_step;
wait(1);
}
}