try it with a second loop, that checks the animation_percentage.. and runs 100% for one time...

Example:
Code:
action guard_with_pointer()
{
	guard1 = my;
	while (1)
	{	
		ent_animate(my, NULL, 0, 0);
		if (key_q && guard_life > 0)
		{
		   attack_percentage = 0;
			while(attack_percentage < 100)
			{
				ent_animate(my, "attack", attack_percentage, NULL); 
				attack_percentage += 3 * time_step;
				wait(1);
			}
		}
		wait (1);
	}
}




Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<