Im not crash-hot with c-script, but here goes...
Code:
vec_set(temp, vector(1000,0,0));    //1000 is max "depth"  to look
vec_rotate(temp, camera.pan);
if(c_trace(camera.x, vec_add(temp, camera.x), NULL))
{
	ent_create("crate.mdl", target.x, NULL);
}




"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial