Code:
public Light()
{
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(27);
write_coord(0);
write_coord(0); // y
write_coord(0); // z
write_byte(50); // radius
write_byte(255); // red
write_byte(255); // green
write_byte(255); // blue
write_byte(10); // life in 10's
write_byte(30); // decay rate in 10's
message_end();
if ( AddLum < 500 )
{
AddLum++
set_task(0.01,"Light")
}
else if ( AddLum == 500 )
{
AddLum = 0
}
}
I can't get a constant light, it's boring

.