its my player function :

Code:
VECTOR* temp ;

function player_function ()
{
	player = me ;
	
	my.scale_x = 0.75 ;
	my.scale_y = 0.75 ;
	my.scale_z = 0.75 ;
	
	while(player_health >= 0)
	{
		c_move(me,vector(30*time_step,0,0),nullvector,IGNORE_PASSABLE);
		
		if(key_w)
...
	
		if(key_ctrl)
		{
			vec_for_vertex (temp.x, my, 356);
			ent_create("Shoot.jpg",temp,shoot_pic_function);
			ent_create("Shoot.jpg",temp,shoot_pic_function);
		}
		wait(1);
	}
}



do you know what's it mean ?

i have the same problem with fire in back and laser in front .
look at the first picture :


it's ok , because its pan never changed until now , in the next picture i changed its pan , now what's problem here ? fire pan and laser pan are changed, it shouldn't change , they should rotate with space ship .




what i want ? i want to shoot laser for enemy or stones in space and this(laser) should rotate with space ship .

it's my laser function :

Code:
function shoot_pic_function ()
{
	my.flags |= OVERLAY | BRIGHT | TRANSLUCENT | PASSABLE;
	
	my.alpha = 80 ;
	
	while(1)
	{
		c_move(me,vector(50,0,0),nullvector,IGNORE_PASSABLE);
		if((vec_dist(player.x, my.x)) >= 2000)
			break ;
			
		wait(1);
	}
	ent_remove(me);
}




Thanks ... laugh
Mohammad

Last edited by Mafia_IR; 06/29/11 08:03.