Check if vehicle need flip
#1

How check if on hood?
Reply
#2

pawn Код:
GetVehicleNeedFlip(vehicleid)//return 1 if need, 0 if not
{
    new Float:Quat[2];
    GetVehicleRotationQuat(vehicleid, Quat[0], Quat[1], Quat[0], Quat[0]);
    return (Quat[1] >= 0.60 || Quat[1] <= -0.60);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)