Ämm, why isn`t this working?

Click to reveal..
if(mouse_left == 0 && mouse_left_press == 1) mouse_left_press = 0;
if(mouse_left == 1 && mouse_left_press == 0 && combo == 0)
{
player.animblend = attack_a;
handle_sword_collision();
my.skill6 += 10 * time_step;
ent_animate(me,"attack_a",my.skill6,ANM_CYCLE);
while(my.skill6){wait(1);}
if(my.skill6 = 100){wait(1); DoCombat = FALSE; mouse_left_press = 0; combo = 1;}
}
if(mouse_left == 1 && mouse_left_press == 0 && combo == 1)
{
player.animblend = attack_b;
handle_sword_collision();
my.skill7 += 10 * time_step;
ent_animate(me,"attack_b",my.skill7,ANM_CYCLE);
while(my.skill7){wait(1);}
if(my.skill7 = 100){wait(1); DoCombat = FALSE; mouse_left_press = 0; combo = 2;}
}
if(mouse_left == 1 && mouse_left_press == 0 && combo == 2)
{
player.animblend = attack_c;
handle_sword_collision();
my.skill8 += 8 * time_step;
ent_animate(me,"attack_c",my.skill8,ANM_CYCLE);
while(my.skill8){wait(1);}
if(my.skill8 = 100){wait(1); DoCombat = FALSE; mouse_left_press = 0; combo = 0;}
}


Doesn`t (for exsample) "if(my.skill6 = 100)" meen;
If the animationen is played to 100 prozent then...???

Last edited by Random; 06/20/11 15:31.