Hi!
I created a code of a light bulb:
entity* light_bulb;

var green = 128;
var blue = 128;
var red = 128;

action light_bulb
{
light_bulb = me;
my.passable = on;
my.invisible= on;
my.lightrange = 300;

while (1)
{
my.lightgreen = green;
my.lightred = red;
my.lightblue = blue;
wait (1);
}
}

And i want to activate this light bulb just when the player press a interruptor in the wall... Somebody can help me with this?
Thanks!

Last edited by LWD; 01/05/07 16:27.