Howdy! I am trying to make a red dot move along the surface of this terrain while it's position is controlled by the mouse cursor. The player is in first person mode controlled by WASD keys but NOT the mouse. It's been a while since I used this engine and would appreciate some help. I am very glad to be back though! laugh

Is there maybe a template anyone has for this?

So far here is what I got.(This is all in a while loop):

Code:
VECTOR mouse_trace;//vector that will glide along terrain's surface moved by mouse

c_trace();//what to do here?

draw_point3d(mouse_trace,COLOR_RED,100,3);//draw the vector to be drawn along trerrain surface	

if (mouse_left && HIT_TARGET && you && ent_type(you) == 4) // click onto terrain
{
	var vertex_num = ent_nextvertex(you,hit.x);      
	CONTACT* c = ent_getvertex(you,NULL,vertex_num);  
	c.z += 3;  // increase the vertex height
	c.v = NULL; // c.x,y,z was changed, instead of c.v   
	ent_setvertex(you,c,vertex_num);    // update the mesh
	wait(-0.5); // reload
}



boolean my.awesomeness = so true;