Quote:
Code:
my.skill15 = max(my.skill15,-15);
my.skill15 = min(my.skill15,0);
if(key_e == 1)
{
my.skill15 -= 1.0*time_step;
}
my.skill15 += 0.5*time_step;
ent_animate(my,NULL,0,0);
ent_bonerotate(my,"arm_axis",vector(0,my.skill15,0));
Is this what you were thinking of? It should stay at 15, unless the user presses and holds the E key. Then it will go back up (when released).
Almost perfect
But is there a way to put the E button one and that there will be a loop to such a movement? So the user don't need to push the E button every time?