Thanks. I've remove it but the ball is still moving the player upwards and the ball is really slow when I call my pass or shot function. How can I stop the upwards movement?

Here's my edited function:

Code:
function move_with_ball()
{

while(my == NULL) wait(1);


while(1){
		proc_mode = PROC_LATE;

		phent_settype(my, 0, 0);
	   

      vec_set(my.x,vector(player.x + 13 * cos(player.pan),player.y + 13 * sin(player.pan), player.z - 12));
      
     
      phent_settype(my, PH_RIGID, PH_SPHERE);
      
      if(key_x){
      	pass();
      	break;
      }
      
      if(key_space){
      	shot();
      	break;
      }
      
      if(key_1){
      break;	
      }	
       
      
wait(1);
}
}



my pass function:

Code:
function pass()
{
	VECTOR vPass;	
   vPass.x = 3; vPass.y = 0; vPass.z = 0.5;
	vec_rotate(vPass, player.pan);
	phent_addvelcentral(my, vPass);
	
}




I know I can.