Hey I just found out a new way how to get more then just 8 light per script.
But the code is very simple though but maybe someone can use it
I mainly use it now for my FPS game just wanted to share with you the light switch on and of if the player comes near or is far away
its pretty simple:
-take a moddel place it somewhere in the Level
-set flag1 true in the properties of the moddel
- and choose the lightrange by typing something in my.skill1
Code:
action light
{
my.invisible = on;
my.passable = on;
if(my.flag1 == on)
{
my.skill2 = 128;
my.skill3 = 128;
my.skill4 = 128;
}
while(1)
{
if (vec_dist (my.x, player.x) < 1500)
{
my.lightrange = my.skill1;
my.lightred = my.skill2;
my.lightgreen = my.skill3;
my.lightblue = my.skill4;
}
else
{
if (vec_dist (my.x, player.x) > 1500)
{
my.lightrange = 0;
}
}
wait(1);
}
}
oh and dont forget to set something
like this in your players action
Code:
player = me;
feel free to use it

Regards
Aztec