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);
}
}