@rolnaaba: set_lights() is for the whole map ;)
Code:
spawn_light(origin[3])
{
message_begin(MSG_BROADCAST, SVC_TEMPENTITY, origin)
write_byte(TE_DLIGHT);// 27
write_coord(origin[0]); // x
write_coord(origin[1]); // y
write_coord(origin[2]); // z
write_byte(100); // radius in 10's
write_byte(255); // r
write_byte(255); // g
write_byte(255); // b
write_byte(8); // life in 10's
write_byte(60); // decay rate in 10's
message_end();
}
Just set the origin where the light should be...and maybe the color and radius...don't ask me what decay is..0o
greetz regalis
__________________