You could do the following on an object:

code:
# Turn red:
my.red=128;

while(1) {
# Light up and wait 3s:
my.lightrange=1000;
waitt(16*3);

# Blink off for 5s:
my.lightrange=0;
waitt(16*5);
}

=thomas