while (my.ANIMATION > 50 && my.ANIMATION <= 100)
{
my.ANIMATION += 10*time_step;
ent_animate(me,"jump",my.ANIMATION,0);
jumpheight -= 0.5*time_step;
c_move(me, nullvector, vector(0,0,jumpheight), GLIDE);
wait(1);
}
// these lines will run after the loop ends. you don't need break;
jumpheight = 0;
my.ANIMATION = 0;
my.STATE = 1;