Hello,

you forgot the * behind ENTITY and the =

the good code is

Code:
ENTITY* panel_ent = {
	type = "test_panel.mdl";
	view = camera;
	flags = SHOW;
	layer = 14;
	pan = 35; tilt = 15; roll = -10;
}

var panel_distance[2] = {200,200};
var panel_distance_y[2] = {0,0};

function handle_panels_startup() {
	
	VECTOR temp;
	while(1) 
	{
		temp.x = 20 * screen_size.x/800;
		temp.y = (20 + panel_distance_y[1]) * screen_size.y/600;
		temp.z = panel_distance[1];
		rel_for_screen(temp.x,camera);
		vec_set(panel_ent.x,temp.x);
		wait(1);
	}
}



Djfeeler

Last edited by djfeeler; 10/13/11 12:50.