Hello.

In FM_Think, i'm using this :
PHP Code:
Util_PlayAnimation(id, 57)
stock Util_PlayAnimation(index, sequence, Float: framerate = 1.0)
{
entity_set_float(index, EV_FL_animtime, get_gametime());
entity_set_float(index, EV_FL_framerate, framerate);
entity_set_int(index, EV_INT_sequence, sequence);
}
ITs not working, because its trying to play this animation Per milisecond.
I want to make something like this :
PHP Code:
public Forward_Think(id)
{
if(....AnimationEnded....)
{
Attacking[id] = false
}
if(!Attacking[id])
{
Util_PlayAnimation(id, 57) // attack animation
Attacking[id] = true;
}
}
Please help me..
__________________