I posted something like this into the players script:

my.light = ON; // illuminate myself
my.lightrange=2000; //could be set also to a skill


my.red=my.skill1; //just put in the r,g,b values
my.green=my.skill2;
my.blue=my.skill3;

and it worked fine, a real flashlight held by the player should not be much harder to implement