Hello,
In my level, I have 4 square tiles on the ceiling.
These tiles are white, and are models.
I have these tiles the same action:
var lightFlicker = 0;
action light(){
while(1){
lightFlicker = random(70);
my.lightrange = 350;
wait(lightFlicker);
my.lightrange = 0;
wait(lightFlicker);
wait(1);
}
}
But I want the model to lit up, together with the lightrange, but I can't get it to work.
Does anyone know a solution?