Here's what I got but it doesn't work.
Any advice on what to do? (Used a example as a template)

Code:
function mole_gun()
{
	while (1)
	{
		
		VECTOR trace_target, camera_target;
		camera_target.x = mouse_pos.x;
		camera_target.y = mouse_pos.y;
		camera_target.z = 200;
		vec_for_screen(camera_target,camera);
		vec_rotate(camera_target,camera.pan);
		if (c_trace(camera, camera_target, IGNORE_PASSABLE | USE_POLYGON| SCAN_TEXTURE) > 0){\
			if (mouse_left && HIT_TARGET && you && ent_type(you) == 4) // fire onto terrain
			{
				var vertex_num = ent_nextvertex(you,hit.x); 
				CONTACT* c1 = ent_getvertex(you,NULL,vertex_num);
				c1.z += 10; 
				c1.v = NULL; 
				ent_setvertex(you,c1,vertex_num);    
				wait(-0.5); 
			}
		}
		wait(1); 
	}
}



boolean my.awesomeness = so true;