VECTOR3 speedvec; // first we define our vector which will recieve the data
oapiGetFocusShipAirspeedVector(&speedvec);//then we retrieve its x,y,z
if (GroundContact()==true && GetAirspeed() >13 && (speedvec[B].[/B]z>0))
{AddForce(_V(0,0,-5e3),_V(0,0,0));}
if (GroundContact()==true && GetAirspeed() >13 && (speedvec[B].[/B]z<0))
{AddForce(_V(0,0,5e3),_V(0,0,0));}
or
VECTOR3 _speedvec; // first we define our vector which will recieve the data
VECTOR3* speedvec = & _speedvec ;
oapiGetFocusShipAirspeedVector(speedvec);//then we retrieve its x,y,z
if (GroundContact()==true && GetAirspeed() >13 && (speedvec->z>0))
{AddForce(_V(0,0,-5e3),_V(0,0,0));}
if (GroundContact()==true && GetAirspeed() >13 && (speedvec->z<0))
{AddForce(_V(0,0,5e3),_V(0,0,0));}