Hi
I ue A6 PRO version 6.31.4
How do I change following football script that can kick a Long pass, loop pass, through pass effect?
Code:
--------------------------------------------------------------------------------

Entity* soc_ball;
Action ball_function(){
my.ENABLE_IMPACT = ON; // event for hit by another moving entity
if(MY.FLOOR_DIST > (MY.MAX_Z - MY.MIN_Z)/2)
{
MY.Z -= MY.FLOOR_DIST - (MY.MAX_Z - MY.MIN_Z)/2;
}
my.z -= 30;
soc_ball = my;
phent_settype(my, PH_RIGID, PH_SPHERE);
phent_setmass(my, 0.2, PH_SPHERE);
phent_setfriction(my, 75);
phent_setelasticity(my, 75, 25);
phent_setdamping(my, 50, 75 );
ph_setgravity( vector(0,0,-386) );
}
in main function
if (key_z==1)
{
temp.x= 15000; temp.y= 0; temp.z= 0;//testing vector
phent_addcentralforce(soc_ball,temp);//give ball power
}

--------------------------------------------------------------------------------

thanks for any advance.
thanks alreaay