Here's the function I'm using for this:
Code:
public spawn_light(r,g,b,bright,radius,x,y,z)
{
new origin[3]
origin[0] = x
origin[1] = y
origin[2] = z
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,origin)
write_byte(TE_DLIGHT);
write_coord(x);
write_coord(y);
write_coord(z);
write_byte(radius);
write_byte(r);
write_byte(g);
write_byte(b);
write_byte(bright);
write_byte(0);
message_end();
}
Only problem, it doesn't stay very long. Any other things to to add/edit in order to keep it in a spot permanently? Thanks.
__________________