try this perhaps it helps that is a code of my soccer game
Member
Registered: 09/21/09
Posts: 117
here is a code of my football game
function attach_ba()
{
while(Ball==NULL){wait(1);}
while(1)
{
set(Ball,SHADOW);
proc_mode = PROC_LATE;
Ball.material = mat_metal;
Ball.x = player.x + 50 * cos(player.pan);
Ball.y = player.y + 50 * sin(player.pan);
Ball.z = player.z-41;
Ball.pan=player.pan;
Ball.tilt+=5 ;
wait(1);
}
}
WFG Progger