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).


If I am posting, it probably means I am asking a question. Or faking my knowledge by agreeing with somebody else.