Code:
while((my.tilt<-30)||(my.tilt>30)||(my.roll>30)||(my.roll<-30))
{
while((my.tilt<-30)||(my.tilt>30)||(my.roll>30)||(my.roll<-30))
{
phent_settype( me, 0, 0 );

if(my.tilt<-20)
{
my.tilt += 10 * time;
}
if(my.tilt>20)
{
my.tilt -= 5 * time;
}
if(my.roll<-20)
{
my.roll += 10 * time;
}
if(my.roll>20)
{
my.roll -= 10 * time;
}
wait(1);
}
phent_settype(me, PH_RIGID, PH_BOX);
wait(1);
}



try with this. if you dont need tilt restrictions just remove it. i'm not sure if this is the best way but it works...



Ubi bene, ibi Patria.