Hi Guys,
i hope you can help me out with my problem. I'm working on a 3rd person fighting script.
The problem is that I want the player to play the jump animation when he is in the air. But, the animation is first played, then the player starts to jump... can you please help me? i want to play the animation during the jump...

CODE:
Quote:


...

while(player_health > 0)
{


player_camera();
player_move();


/// Movement
input_vec.x = (key_d - key_a) * time * 8;

Vz += (Vz == 0) * 30 * key_space * jump_able;

if(Vz > 0)
{
jump_able = 0;

}
Vz -= (Vz > 0);


if(trace_hit)
{
jump_able = 1;
}

c_move(me,input_vec,nullvector,GLIDE+IGNORE_PASSABLE);
c_move(me,nullvector,vector(0,0,(Vz - 10) * time),IGNORE_PASSABLE);


if (key_space == 1)
{
if (jump_able != 1) // Sprung
{

if(key_e == 0)
{

my.jump_percentage = 0; //
while (my.jump_percentage < 80)
{
ent_cycle("jumping", my.jump_percentage);
my.jump_percentage += 6 * time;


wait (1);
}


}
else
{
my.jumpkick_percentage = 0; //
while (my.jumpkick_percentage < 80)
{

ent_cycle("jumpkick", my.jumpkick_percentage);
my.jumpkick_percentage += 10 * time;
wait (1);
}
while (key_e == 1) {wait (4);} // no autofire
}
}
}
...





Ja, lach du nur du haariges Pelzvieh!